【问题标题】:Modifying the Introduction on the Web API help page修改 Web API 帮助页面的介绍
【发布时间】:2016-11-16 02:47:46
【问题描述】:

我使用 REST 端点增强了旧的 SOAP 样式 Web 服务。大多数一切都正常工作,但我无法弄清楚如何更改自动生成的帮助文件的介绍。我现在将介绍显示为“在此处提供您的 API 的一般描述”。

我已关注此Similar question, but doesn't explain where to change Introduction 并记录了其他所有内容,但仍然不知道在哪里更改介绍。

我应该使用第 2 版的 Web-API。

【问题讨论】:

  • 你可以找到信息here

标签: c# asp.net-web-api2 asp.net-web-api-helppages


【解决方案1】:

在 Visual Studio 的解决方案资源管理器窗口中,转到:YourProject -> Areas 文件夹 -> HelpPage -> Views -> Help -> index.cshtml,您将看到要修改的文本。

或者,您可以只查找所有 (Ctrl+Shift+F) 来查找您要查找的文本 Provide a general description of your APIs here.

修改后,保存index.cshtml 并在浏览器中刷新页面。应该不错。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-26
    • 1970-01-01
    相关资源
    最近更新 更多