-
-
Notifications
You must be signed in to change notification settings - Fork 74
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: Disable publishing of /apidoc route #310
Labels
enhancement
New feature or request
Comments
I think that might be useful, feel free to open PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature
Add a boolean argument to the Spectree constructor that defines whether the /apidoc routes will be created or not. Maybe even being able to select whether to create the route /apidoc/openapi.json but not the /apidoc/swagger one.
Additional context
I use this a lot in development but when launching to production I'd like to be able to disable the /apidoc route but keep the validation.
The context of creating only the /apidoc/openapi.json is not something I particularly need but might be interesting to have for someone else.
The text was updated successfully, but these errors were encountered: