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 support for OpenAPI basePath/servers #3

Open
Tobion opened this issue May 31, 2020 · 1 comment
Open

Add support for OpenAPI basePath/servers #3

Tobion opened this issue May 31, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Tobion
Copy link
Owner

Tobion commented May 31, 2020

https://swagger.io/docs/specification/2-0/api-host-and-base-path/

the basePath should be added to the route path. It should be possible to also disable this in case the basePath should not be part of the Symfony app as it's done via URL rewrite for example.

@Tobion Tobion added the enhancement New feature or request label May 31, 2020
@Tobion
Copy link
Owner Author

Tobion commented Dec 2, 2020

In OpenApi v3 the equivalent is servers.url. but there can be multiple servers and the url can also contain the host and placeholders. and the servers can be overwritten at the path level.
so we would need to extract the path from the url and decide which server to use (or probably only do this when there is only a single server or check if all servers have the same path)

@Tobion Tobion changed the title Add support for OpenAPI basePath Add support for OpenAPI basePath/servers Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant