我想使用Web API的Api Explorer来开始生成自己的文档html页面。我要针对的是此处描述的内容:http : //blogs.msdn.com/b/yaohuang1/archive/2013/01/20/design-time-generation-of-help-page-or- asp-net-web-api.aspx代理
但是,该项目有些过时了,不能与当前的Web api一起使用。我希望有:
这可能吗?
我可以加载程序集并在其上运行Api Explorer吗?
我按照指南进行了访问:http://bitoftech.net/2014/08/25/asp-net-web-api-documentation-using-swagger/
我提出了以下XML注释:
/// <summary>
/// Add new student
/// </summary>
/// <param name="student">Student Model</param>
/// <remarks>Insert new student</remarks>
/// <response code="400">Bad request</response>
/// <response code="500">Internal Server Error</response>
Run Code Online (Sandbox Code Playgroud)
为什么我没有得到任何描述?响应代码也没有出现.
