Environment:
vs2015, Win7
Reference: http://www.cnblogs.com/Erik_Xu/p/5638381.html
The help page generated is as follows:, and the controller and method are not displayed.
The reason: The new project was not checked when the Web Api,webapi was added later. The WebApiConfig.cs file under App_start is missing, as follows. To display the action, change to Routetemplate: "Api/{controller}/{action}/{id}",
Public Static classWebapiconfig { Public Static voidRegister (httpconfiguration config) {//Web API Configuration and Services//Web API RoutesCONFIG. Maphttpattributeroutes (); Config. Routes.maphttproute (Name:"Defaultapi", Routetemplate:"Api/{controller}/{id}", defaults:New{id =routeparameter.optional}); } }
Lack of globalconfiguration.configure (Webapiconfig.register) in Global.asax;
WEBAPI build Helppage in Visual Studio 2015, the page does not Show method description problem resolution