Search code examples
asp.net-mvcasp.net-apicontroller

Make a page with an overview of all available api's in asp.net mvc


I'm making web API's whit ASP.NET MVC. I've get an example form a theater and I see that he has made an overview of all available API's. How Can I made that into my own website?

Here is the overview:

enter image description here

This is the detail page where you can see the result in Json and XML.

enter image description hereenter image description here

How can I make this?


Solution

  • As mentioned in my comment, if you create a new web-api project then they will be there already under your project -> Areas -> HelpPage.

    If however you do not have them (you may have started the project already etc), then you can use the following commands in the package manager console:

    For a C# application: Install-Package Microsoft.AspNet.WebApi.HelpPage

    For a Visual Basic application: Install-Package Microsoft.AspNet.WebApi.HelpPage.VB

    See here for more detail: Create Help Pages