File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 15
15
1 . Add ` Simplify.Web.Swagger ` , ` Swashbuckle.AspNetCore.SwaggerGen ` and ` Swashbuckle.AspNetCore.SwaggerUI ` packages to your project
16
16
17
17
``` xml
18
- <PackageReference Include =" Simplify.Web.Swagger" Version =" 0.1 .*" />
19
- <PackageReference Include =" Swashbuckle.AspNetCore.SwaggerGen" Version =" 6.3 .*" />
20
- <PackageReference Include =" Swashbuckle.AspNetCore.SwaggerUI" Version =" 6.3 .*" />
18
+ <PackageReference Include =" Simplify.Web.Swagger" Version =" 1.0 .*" />
19
+ <PackageReference Include =" Swashbuckle.AspNetCore.SwaggerGen" Version =" 6.6 .*" />
20
+ <PackageReference Include =" Swashbuckle.AspNetCore.SwaggerUI" Version =" 6.6 .*" />
21
21
```
22
22
23
23
1 . Add ` AddSimplifyWebSwagger ` in ` AddSwaggerGen ` registration and ` Simplify.Web ` controllers will be scanned during Swagger generation process.
@@ -45,11 +45,11 @@ app.Run();
45
45
4 . Add controller Swagger attributes (if needed)
46
46
47
47
``` csharp
48
- [Get (" /api/v1/users/{id:int }" )]
48
+ [Get (" /api/v1/users/{id}" )]
49
49
[ApiVersion (" 1.0" )]
50
50
[ProducesResponse (StatusCodes .Status200OK , " application/json" )]
51
51
[ProducesResponse (StatusCodes .Status500InternalServerError )]
52
- public class GetController : Simplify . Web . Controller
52
+ public class GetController : Controller2
53
53
{
54
54
...
55
55
}
You can’t perform that action at this time.
0 commit comments