swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Allow api schemes property to be configured #118

Open wongelz opened 7 years ago

wongelz commented 7 years ago

Perhaps swagger.api.schemes in application.conf

dschiavu commented 5 years ago

Agree, this property should be configurable. Currently, the generated swagger.json file is missing the schemes property so the Swagger UI defaults to the https schema when executing the APIs and the user is unable to switch between http and https at all.

dschiavu commented 5 years ago

A temporary workaround is to append url=http://host/swagger.json to the Swagger UI URL, it will force the UI to load the specified spec file and it will use the http instead of https scheme.