Our service has two instances. Live is operational and has the URL .../bazaar and beta is for public testing and has the URL .../betabazaar.
We deployed a Swagger UI instanze and changed the url to fetch .../betabazaar/swagger.json which works. But when I use "try out" all requests goes to .../bazaar/...
I assume Swagger uses the @ServicePath parameter to fill the path. For both instances the @ServicePath is /bazaar. Our Nginx proxy server does the job for sending all requests for .../betabazaar/... to to beta instance.
So can I change the URL Swagger UI is using for "try it out" request in Swagger UI? Or do I need to change the @ServicePath in Java?
I already played with window.swaggerUi.setBasePath('/betabazaar'); but this leads to Swagger UI try to fetch http://example.com/api in the first place.