Skip to content

Conversation

@valdemon
Copy link
Contributor

This change allows using relative paths (like "api/v0", "v0" or simply "/") for the Resource's basePath value. In such cases the absolute resource's basePath is being constructed from relative one, using the runtime value of the parent api basePath.
Examples:
runtime api.basePath = http://myhost.com:8090/mywebapp/v0/api-docs
relative resource basePath = v0
=> absolute resource basePath = http://myhost.com:8090/mywebapp/v0

This also addresses and resolves the issue #52.

@fehguy
Copy link
Contributor

fehguy commented Nov 4, 2013

This works, but note that most of the swagger tools will NOT work with relative base paths.

fehguy added a commit that referenced this pull request Nov 4, 2013
…rom_relative

Construct the absolute resource basePath from relative one, using the Api basePath
@fehguy fehguy merged commit ecaee69 into swagger-api:master Nov 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants