title: Override base url in swagger UI
body: <p>Our service has two instances. Live is operational and has the URL .../bazaar and beta is for public testing and has the URL .../betabazaar.</p>
  
  <p>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/... </p>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>I already played with window.swaggerUi.setBasePath('/betabazaar'); but this leads to Swagger UI try to fetch <a href="http://example.com/api" rel="nofollow noreferrer">http://example.com/api</a> in the first place.</p>