I have a functional Web API project. How can I retrofit it with minimal effort to a Swagger documentation/design like http://petstore.swagger.wordnik.com/
Is there a native Swagger like capability available for Web API itself?
I have a functional Web API project. How can I retrofit it with minimal effort to a Swagger documentation/design like http://petstore.swagger.wordnik.com/
Is there a native Swagger like capability available for Web API itself?
For the ASP.NET Web API I recommend you "Swashbuckle". This implementation simplifies adding Swagger to any Web API project by following simple steps. Basically, you will only have to Install the Swashbuckle NuGet package and follow some easy instructions.
Taiseer Joudeh wrote the post "ASP.NET Web API Documentation using Swagger" about how to configure it.
Another popular implementation is Swagger.net, but last change was made 2 years ago, so it seems discontinued.
You can also use NSwag to generate Swagger specifications and client code for existing Web API controllers... There is a Windows GUI and command line tools to integrate the tools in your build chains...
You might also try Swank. Automatically generates documentation, supports XML comments, markdown, emojis, coventions, etc: http://www.mikeobrien.net/swank/