There are several use cases for swagger ui to be overriden:
- Add custom HTML to swagger
- Add custom header to swagger requests
- Update or extend authorization
In Swashbuckle there is a way to inject custom javascript and css into the body:
JS and CSS files can exist under wwwroot
folder with UseStaticFiles
middleware.
Then you can implement new swagger configuration in "extend-swagger.js" file:
Full configuration of SwaggerUIBundle can be found at swagger-ui docs