Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.NET Web API Displaying all controller's routes

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/

like image 424
Dennis Nerush Avatar asked Mar 11 '15 10:03

Dennis Nerush


2 Answers

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.

like image 172
DeepakJ Avatar answered Oct 06 '22 01:10

DeepakJ


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

like image 25
Dennis Nerush Avatar answered Oct 06 '22 00:10

Dennis Nerush