4

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?

3 Answers 3

13

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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...

enter image description here

Comments

0

You might also try Swank. Automatically generates documentation, supports XML comments, markdown, emojis, coventions, etc: http://www.mikeobrien.net/swank/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.