Search code examples
springfox

How can I modify swagger-ui.html for springfox?


I am using springfox's swagger implementation. I would like to modify the swagger-ui.html to take a custom header value. How do I modify this file? Or tell spring fox to use an alternate file?


Solution

  • If you're going to customize swagger-ui quite a bit, I would just recommend adding a private copy of swagger-ui to your web application resources and modify the ui based on your needs.

    Swagger-ui bundled with springfox is optional.