Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Endpoint is not picked from the swagger definition(2.0) #11

Open
jranabahu opened this issue Jun 23, 2015 · 0 comments
Open

Endpoint is not picked from the swagger definition(2.0) #11

jranabahu opened this issue Jun 23, 2015 · 0 comments

Comments

@jranabahu
Copy link

I've used the petstore-expanded.json[1] in swagger samples and the endpoint value is not set in the default request. The reason for this is that the code assumes that the "basePath" contains the host name where the API is served. While this is true for the swagger 1.2 spec, in swagger 2.0 spec the "basePath" is relative to the "host" field.

If the swagger definition has a "host" field, then the endpoint should be picked from that field.

Thanks,
Janaka

[1] https://raw.githubusercontent.com/swagger-api/swagger-spec/master/examples/v2.0/json/petstore-expanded.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant