How to change https://<your-url>/swagger to custom in Swagger

Nat picture Nat · Apr 29, 2016 · Viewed 9.3k times · Source

I was tasked to install Swagger into Web API project.

Installed: most recent version of Swashbuckle from nuget. (Swashbuckle.Core.Net45 and Swashbuckle.Net45)

Customized: App_Start\SwaggerConfig.cs. I was able to customize (change styles, added logo, modified descriptions)..

Now we need to change from https://[your-url]/swagger to https://[your-url]/help

Please advise

Answer

Gurgen Hakobyan picture Gurgen Hakobyan · Jul 17, 2017

Change routePrefix of SwaggerUIOptions parameter, default is "swagger"