-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow empty host #86
Comments
Also, to make it working on multiple hosts without bothering with deployedDomain I had to change swagger backend to append application root here: https://github.com/sdaschner/jaxrs-analyzer/blob/master/src/main/java/com/sebastian_daschner/jaxrs_analyzer/backend/swagger/SwaggerBackend.java#L100 Changed to:
It is needed because host is empty so swaggerUI will resolve it based on url and append basePath to make requests. Here is my swagger.json:
In my opinion this is the simplest way to handle multiple hosts in swaggerUI. WDYT? |
closing as it duplicates #42 |
Using empty host in swagger backend ( "host":"") helps when using Swagger UI because it automatically resolves the host URL (via window.location) and it makes it easier to use swagger across multiple hosts/environments
The text was updated successfully, but these errors were encountered: