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

feat: Disable publishing of /apidoc route #310

Open
AndreasBBS opened this issue May 12, 2023 · 1 comment · May be fixed by #311
Open

feat: Disable publishing of /apidoc route #310

AndreasBBS opened this issue May 12, 2023 · 1 comment · May be fixed by #311
Labels
enhancement New feature or request

Comments

@AndreasBBS
Copy link
Contributor

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.

@AndreasBBS AndreasBBS added the enhancement New feature or request label May 12, 2023
@yedpodtrzitko
Copy link
Collaborator

I think that might be useful, feel free to open PR.

@AndreasBBS AndreasBBS linked a pull request May 14, 2023 that will close this issue
@kemingy kemingy linked a pull request May 15, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants