swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.59k stars 8.96k forks source link

How to remove or hide the server list in Swagger UI using Springdoc? #8309

Open mlr28 opened 1 year ago

mlr28 commented 1 year ago

How to disable or hide the "Servers" dropdown from Swagger UI?

Swagger UI server dropdown

My Maven dependency is:

`

org.springdoc springdoc-openapi-ui 1.6.13

`

Capture

choda commented 1 year ago

Your question belongs on the springdoc github.

Here's a suggestion of a hack/workaround whenever you need to customize the Swagger interface and there's no native springdoc option for your need.

skironDotNet commented 7 months ago

Best I found https://github.com/swagger-api/swagger-ui/issues/4669#issuecomment-399530062

And https://stackoverflow.com/questions/74376470/cant-load-custom-css-for-swagger-asp-net-core-6