swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Read swagger.api.host for "host" in swagger.json if available #144

Closed willgroves closed 7 years ago

willgroves commented 7 years ago

Addresses issue #44. If swagger.api.host is set, use that for "host" in swagger.json instead of requestHeader.host . This is useful if running swagger behind a reverse proxy and control over the generated urls is desired in swagger-ui.

Without this PR, the "host" attribute of swagger.json is the host:port of the webserver (e.g. 127.0.0.1:9000).