Its probably fairly simple to do that using the springfox library without changing much of the ui code or messing with html etc.
Here are the steps for a spring specific solution:
- Create your new spring boot app
- Create request mappings needed by the swagger-ui (/swagger-resources, /configuration/security, /configuration/ui)
- provide a list of
SwaggerResources that point to the different micro services you have. Doesn't matter how you load it as long as you have a list of swagger resources that the ui can use.
This solution however is not limited to spring based solutions, as long as you include the web jar and create resources at those urls and adhere to the json contract, it should help you bootstrap any application with an uber swagger-ui; be it jax-rs, jersey, drop wizard etc.
This is actually
Adrian's, idea (awesome, I might add) which I believe he brought up in this forum a while back. We've been using it and it works like a charm.
If you have trouble with that let me know or post issues @
springfox.io
-Dilip