domaindrivendev / Swashbuckle.AspNetCore

Swagger tools for documenting API's built on ASP.NET Core
MIT License
5.17k stars 1.29k forks source link

The swaggerendpoint cannot be set to a value other than "swagger"? #2490

Closed 835718973 closed 2 months ago

835718973 commented 1 year ago

I want to set the document page path to a custom value,but if the use "/swagger/v1/swagger.json",it works,otherwise "/swagger1/v1/swagger.json",it does not work.

fschick commented 1 year ago

It's possible.

Example UI: https://demo.timetracking.schick-software.de/openapi/index.html

Example code: https://github.com/fschick/TimeTracking/blob/main/FS.TimeTracking/FS.TimeTracking.Api.REST/Startup/OpenApi.cs Search in code for constant OPEN_API_UI_ROUTE

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.