Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Web API Help page under separate project

I have ASP.NET Web API project and I want to add a Help page, but I want it to be in a separate project.

Is it possible ?

like image 491
koryakinp Avatar asked Feb 04 '15 08:02

koryakinp


People also ask

Which one from the following will run on top of ASP Net Web API help pages?

NuGet packages (36) A simple Test Client built on top of ASP.NET Web API Help Page.

How do I use Microsoft Aspnet WebAPI Helppage?

Creating API Help Pages Install ASP.NET and Web Tools 2012.2 Update. This update integrates help pages into the Web API project template. Next, create a new ASP.NET MVC 4 project and select the Web API project template. The project template creates an example API controller named ValuesController .


1 Answers

You should call WebApiConfig.Register from your Web API project in your help project:

  protected void Application_Start()
  {
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     GlobalConfiguration.Configure(MyApiProjectNamespace.WebApiConfig.Register);
  }
like image 199
Igor Laptiev Avatar answered Sep 18 '22 20:09

Igor Laptiev