Yelp / bravado

Bravado is a python client library for Swagger 2.0 services
Other
605 stars 117 forks source link

How to specify basepath when loading swagger.json from_url? #345

Open jones77 opened 6 years ago

jones77 commented 6 years ago

Looks like you used to be able to configure the swagger basepath, using api_base_path in the following: https://github.com/Yelp/bravado/pull/86

But looks like this got removed. I can see base_path in https://github.com/Yelp/bravado/blob/master/bravado/swagger_model.py (with some "what's this?"-style TODOs) but it's unclear how to invoke it from https://github.com/Yelp/bravado/blob/master/bravado/client.py

kmsquire commented 6 years ago

I also ran into this issue. In my case, I got around it by downloading and modifying the swagger spec file (injecting the new/proper host name), but I would love for this part of the API to be re-enabled.