Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 553
Nat Avatar asked Apr 29 '16 17:04

Nat


1 Answers

Change routePrefix of SwaggerUIOptions parameter, default is "swagger"

like image 71
Gurgen Hakobyan Avatar answered Oct 11 '22 12:10

Gurgen Hakobyan