自动生成web api接口文档
然后打开web程序,访问ip:port/Help.
为什么可以直接输入Help就能访问呢,因为这个插件本身已经配置了路径,如下。
1 public class HelpPageAreaRegistration : AreaRegistration 2 { 3 public override string AreaName 4 { 5 get 6 { 7 return "HelpPage"; 8 } 9 } 10 11 public override void RegisterArea(AreaRegistrationContext context) 12 { 13 context.MapRoute( 14 "HelpPage_Default", 15 "Help/{action}/{apiId}", 16 new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); 17 18 HelpPageConfig.Register(GlobalConfiguration.Configuration); 19 } 20 }