Forum Discussion
Hi jdang67 ,
I'm no .NET expert, but the go-to library for Swagger is Swashbuckle (https://learn.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-7.0&tabs=visual-studio) .
Integrating that would be a good first step, especially to see how far you can get with automated approaches.
Ultimately there are two steps, getting the API details (ie: describing your API) which is what Swashbuckle helps to do.
Then the second part is displaying that description (known as an OpenAPI file/definition) in some documentation tool (typically SwaggerUI, but there are others). The second step can be entirely independent of the server stack using, which is where you can manually describe the definition and then render it inside Razor pages or outside of it.
Hope that helps get things going!
- jdang672 years agoNew Contributor
I have been using Swagger for many years for WebApi, not WebApi MVC, So far, there is no luck yet.
Related Content
- 4 years ago
- 10 months ago
Recent Discussions
- 2 days ago
- 3 days ago
- 20 days ago