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

Changing base path. #14

Closed
RobertoMachorro opened this issue Jun 30, 2023 · 3 comments
Closed

Changing base path. #14

RobertoMachorro opened this issue Jun 30, 2023 · 3 comments

Comments

@RobertoMachorro
Copy link
Contributor

My services are all served behind an API gateway, the gateway prefixes endpoints paths based on version and API status. The swagger.json generated reflects the original path. How can I change this?

Example:
From: /api/resources/vehicle
To: /dev/v1/api/resources/vehicle

Thanks!

@dankinsoid
Copy link
Owner

@RobertoMachorro there is a servers property in routes.openAPI method, is it suitable for you?

1 similar comment
@dankinsoid
Copy link
Owner

@RobertoMachorro there is a servers property in routes.openAPI method, is it suitable for you?

@RobertoMachorro
Copy link
Contributor Author

Yes! Completely forgot that it's part of the OpenAPI spec. Thanks for the help, much appreciated.

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

No branches or pull requests

2 participants