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 15151 . Add ` Simplify.Web.Swagger ` , ` Swashbuckle.AspNetCore.SwaggerGen ` and ` Swashbuckle.AspNetCore.SwaggerUI ` packages to your project
1616
1717``` 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 .*" />
2121```
2222
23231 . Add ` AddSimplifyWebSwagger ` in ` AddSwaggerGen ` registration and ` Simplify.Web ` controllers will be scanned during Swagger generation process.
@@ -45,11 +45,11 @@ app.Run();
45454 . Add controller Swagger attributes (if needed)
4646
4747``` csharp
48- [Get (" /api/v1/users/{id:int }" )]
48+ [Get (" /api/v1/users/{id}" )]
4949[ApiVersion (" 1.0" )]
5050[ProducesResponse (StatusCodes .Status200OK , " application/json" )]
5151[ProducesResponse (StatusCodes .Status500InternalServerError )]
52- public class GetController : Simplify . Web . Controller
52+ public class GetController : Controller2
5353{
5454 ...
5555}
You can’t perform that action at this time.
0 commit comments