Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swagger-php generated basePath #6

Closed
bravo-kernel opened this issue Dec 11, 2015 · 0 comments
Closed

Add swagger-php generated basePath #6

bravo-kernel opened this issue Dec 11, 2015 · 0 comments

Comments

@bravo-kernel
Copy link
Contributor

DocsController should generate the three fields used by Swagger-UI to generate and show the Base Url:

        basePath="/v0",
        host="your.api.local",
        schemes={"http", "https"},

NEVER specify these fields in the source code annotations as this will break deploying your app to environments using no/different basePath.

Update:
Only schemes should be configurable, basePath and host can be fetched realtime.

More information:

bravo-kernel added a commit that referenced this issue Dec 16, 2015
Makes BASE URL required fields configurable (closes #6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant