如何在Swagger中将https:// <your-url>/swagger更改为自定义

Nat*_*a Z 6 swagger swagger-ui swagger-2.0 swagger-editor swashbuckle

我的任务是将Swagger安装到Web API项目中.

安装:来自nuget的最新版Swashbuckle.(Swashbuckle.Core.Net45和Swashbuckle.Net45)

自定义:App_Start\SwaggerConfig.cs.我能够自定义(更改样式,添加徽标,修改说明)..

现在我们需要从https:// [your-url]/swagger更改为https:// [your-url]/help

请指教

ven*_*rik 3

遵循文档怎么样?在你的情况下,你可以将其更改SwaggerConfig

httpConfiguration
    .EnableSwaggerUi("help/{*assetPath}");
Run Code Online (Sandbox Code Playgroud)

然后可以在https://[your-url]/help/index找到该文档