Ask a Question

Override swagger default configuration url in dotnet core

vasantraog
New Contributor

Override swagger default configuration url in dotnet core


1) I have a requirement to make my url to /swagger-ui/ instead of default url i.e (/swagger/index.html)
2) I want to override the /swagger/v1/swagger.json to /v1/apidocs

Basically, wanted to override the default configuration of swagger (open api 3.0.1) in dotnet core as i am using swashbu
example:- Convert /swagger/index.html to Iswagger-ui/

Convert /swagger/v1/swagger.json to /v1/apidocs

Any help will be appreciated !!!!

2 REPLIES 2
nmrao
Community Hero

Re: Override swagger default configuration url in dotnet core

If not already, please see if the below article helps
https://www.c-sharpcorner.com/article/swagger-in-dotnet-core/


Regards,
Rao.
vasantraog
New Contributor

Re: Override swagger default configuration url in dotnet core

Thanks @nmrao for the reply.

But here my ask is replacing/overriding default url from https://localhost:5003/swagger/index.html to  localhost:5003/swagger-ui/

another ovverriding the url from   https://localhost:5003/swagger/v1/swagger.json  to  https://localhost:5003/v1/api-docs1/

Any help would be grateful.

cancel
Showing results for 
Search instead for 
Did you mean: