How to direct to help page on run time of Web API 2

69 Views Asked by At

I added a help page to my Web API 2 project following these instructions: msdn app help page

How on run time do I enable to always display the help page without having to type help in the URL. When I set Index.cshtml as start page I get a 404 error. Thanks!

2

There are 2 best solutions below

2
matt_lethargic On

You would have to add a route, something like:

config.Routes.MapHttpRoute("Help", "", new { area = "Help" }

I've not tested this as it's been a long time since I used Help Pages, but it's the way I would do it, or at least try!

0
lcryder On

Put the word 'help' (no quotes) as the start page.