If I do not specify a 'host' in my swagger spec, pyswagger attempts to use the entire spec URL I gave it for the host. Swagger spec states "If the host is not included, the host serving the documentation is to be used (including the port)."
Example, if I do:
URL = hostname/api/spec
app = pyswagger.SwaggerApp.create(URL)
It then attempts to use URL as the host for all requests.
request.url: hostname/api/spec/api/auth
when it should be 'hostname/api/auth'
Thanks! This should be a simple one.
If I do not specify a 'host' in my swagger spec, pyswagger attempts to use the entire spec URL I gave it for the host. Swagger spec states "If the host is not included, the host serving the documentation is to be used (including the port)."
Example, if I do:
URL = hostname/api/spec
app = pyswagger.SwaggerApp.create(URL)
It then attempts to use URL as the host for all requests.
request.url: hostname/api/spec/api/auth
when it should be 'hostname/api/auth'
Thanks! This should be a simple one.