ASP.NET Web API - Automatic API Documentation Generation

We are creating a RESTful API project using ASP.NET web API.

We are looking for a simple way to create documentation automatically for every method call that we open in our API, including: HTTP verbs, URIs, expected parameters, and a sample payload.

Can anyone recommend some of the tools and approaches they used to achieve this for an ASP.NET Web API project?

Are there even tools that will do this? Or will it be a disciplined manual process?

+56
asp.net-web-api documentation asp.net-mvc-apiexplorer
May 22, '12 at 2:40
source share
2 answers

The webapi team is currently working on a documentation tool. The tool is called ApiExplorer.

http://blogs.msdn.com/b/yaohuang1/archive/2012/05/13/asp-net-web-api-introducing-iapiexplorer-apiexplorer.aspx

http://blogs.msdn.com/b/yaohuang1/archive/2012/05/21/asp-net-web-api-generating-a-web-api-help-page-using-apiexplorer.aspx

Update: here is the official documentation: http://www.asp.net/web-api/overview/creating-web-apis/creating-api-help-pages

Update 3/1/2015 - There is a project called Swashbuckle that uses ApiExplorer to create Swagger Documents. ( Github , nuget )

+58
May 22 '12 at 4:02
source share

Just released an OSS library called Swank that does this. Automatically creates documentation, supports XML comments, markdowns, emojis, coventions, etc.: http://www.mikeobrien.net/swank/

0
Sep 08 '16 at 1:27
source share



All Articles