-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: allow the swagger path to be configurable #1425
feat: allow the swagger path to be configurable #1425
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go, just one minor request
src/main.ts
Outdated
@@ -36,8 +36,9 @@ async function bootstrap() { | |||
docExpansion: "none", | |||
}, | |||
}; | |||
const swaggerPath = process.env.SWAGGER_PATH || "explorer"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you place this in the config service, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
dd47a99
to
35cf081
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To minor changes
In configuration.ts, add a new property "versions.api" with a default value of "v3". Also, add a new property "swaggerPath" with a default value of "explorer".
a611f50
to
55329e7
Compare
Description
This PR makes the Swagger path configurable by allowing it to be set through the SWAGGER_PATH environment variable. If not provided, it defaults to “explorer.”
Motivation
Making the Swagger path configurable improves flexibility, allowing different paths for different environments
Fixes:
Please provide a list of the fixes implemented by this PR
Changes:
Please provide a list of the changes implemented by this PR
Tests included
Documentation
official documentation info
If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included