9

Is there a way to display all the available services that the application exposes via Web Api actions? For example when a user goes to http://someurl/api/ he will get a list of all the available services, their descriptions and the required parameters? I remember that I've seen this once but I cannot find any documentation for it/

Dennis Nerush
  • 5,473
  • 5
  • 25
  • 33

2 Answers2

9

Found the answer! ASP.NET Web API has a feature called "Help Pages" it allows to display all the allowed actions and a description. It is generated automatically. enter image description here

Dennis Nerush
  • 5,473
  • 5
  • 25
  • 33
4

Refer following URL

http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/creating-api-help-pages

you can also customize the help page as per your requirement.

DeepakJ
  • 378
  • 4
  • 14
  • 2
    Can you please add enough detail to your answer so that it answers the question and uses the link as a reference? – Ryan Gates Jul 18 '16 at 13:48