scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.43k stars 229 forks source link

How to create a dropdown list on explorer bar? #289

Open iurylippo opened 2 years ago

iurylippo commented 2 years ago

on Swashbuckle for .Net you can separate apis grouping in a dropdownlist:

image

is there a way to do that passing a custom template?

scottie1984 commented 2 years ago

You would need to consult the swagger ui documentation for this - https://swagger.io/tools/swagger-ui/.

The urls can be configured via the swaggerOptions - https://github.com/scottie1984/swagger-ui-express#load-swagger-from-url

The template I am not sure on - but perhaps you can define a custom plugin - https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/

Utopiah commented 9 months ago

Which options can be used in order to extend or use another UI? I do see the CSS and JS options but what if I want, as suggested here, to change the DOM itself as documented in https://github.com/swagger-api/swagger-ui/blob/master/docs/customization/custom-layout.md#creating-a-custom-layout ?