Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how would one get methods exposed in a webAPI project?

How can I programatically get a list of public methods w/parameters that are exposed in my webAPI project? I need to provide this list to our QA dept. I dont want to compile and maintain the list myself. I want to provide a link for QA to find the methods on their own. I need something like what you get when you browse to an .asmx file.

like image 509
sme Avatar asked Sep 26 '13 20:09

sme


1 Answers

ASP.NET Web API lets you create a help page automatically. That help pages documents all endpoints provided by your API. Please refer to this blog post: Creating Help Pages for ASP.NET Web API.

You can, of course, create an entirely custom documentation by leveraging the IApiExplorer interface.

like image 97
Marius Schulz Avatar answered Oct 08 '22 20:10

Marius Schulz