how would one get methods exposed in a webAPI project?

sme picture sme · Sep 26, 2013 · Viewed 12.3k times · Source

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.

Answer

Marius Schulz picture Marius Schulz · Sep 27, 2013

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.