小编Ram*_*min的帖子

用于外部项目或程序集的Api Explorer

我想使用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一起使用。我希望有:

  1. 一个控制台程序,其中安装了api Explorer Explorer核心库。
  2. 它从另一个项目中获取一个程序集,并在其上运行Api Explorer以获取所有REST路径和方法。
  3. 我不希望将Api Explorer或帮助页面安装在我要定位的项目上。我只想使用项目的程序集,控制台应用程序将具有所有必需的API资源管理器包。

这可能吗?

我可以加载程序集并在其上运行Api Explorer吗?

c# asp.net-mvc asp.net-web-api

5
推荐指数
1
解决办法
744
查看次数

缺少Web Api的swagger REST描述

我按照指南进行了访问: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)

为什么我没有得到任何描述?响应代码也没有出现. 截图

asp.net asp.net-web-api swagger

2
推荐指数
1
解决办法
2027
查看次数

标签 统计

asp.net-web-api ×2

asp.net ×1

asp.net-mvc ×1

c# ×1

swagger ×1