I followed the tutorial on ASP.Net website to add Help Pages on a WebAPI empty project. ( http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/creating-api-help-pages )
The thing is that I indeed access the help page index but when I click on a end point link to get details and samples it gives me a 404 error.
I don't know why it doesn't work, I have currently a Model, and a controller with Entity Framework.
Does anyone know what is wrong?
You can use Swaggger instead for help pages. It's better than the WebAPI Help. Just download this package through NuGet:
<package id="Swashbuckle" version="5.2.2" targetFramework="net452" />
In the Global.asax file, add the following code to the Application_Start method, if it is not there already:
protected void Application_Start()
{
// Add this code, if not present.
AreaRegistration.RegisterAllAreas();
// ...
}
to register areas.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.