Forum Discussion
3 Replies
Sort By
- TanyaYatskovskaSmartBear Alumni (Retired)
Community, is there anything we can suggest?
- suhasOracleNew Contributor
I want to set "host" attribute in Swagger JSON dynamically and update Swagger JSON file.
- kyleshockeySmartBear Alumni (Retired)
Hi suhasOracle!
There's no way to have Swagger UI produce a JSON document based on the host information you're setting with setHost(), but you can have it dynamically change based on the URL of your swagger.json by leaving host out completely:
If the
host
is not included, the host serving the documentation is to be used (including the port)
OpenAPI 2.0 Specification
Related Content
- 7 years ago
Recent Discussions
- 4 days ago
- 26 days ago