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

How to Disable Swagger UI and openapi.json in Cog #1986

Open
kosukekurimoto opened this issue Oct 11, 2024 · 1 comment
Open

How to Disable Swagger UI and openapi.json in Cog #1986

kosukekurimoto opened this issue Oct 11, 2024 · 1 comment

Comments

@kosukekurimoto
Copy link

Hi

I hope this message finds you well. I am currently exploring Cog and would like to understand how to disable the Swagger UI and openapi.json endpoints for security purposes.

Could you please provide guidance or recommended steps to achieve this configuration? Any help or documentation you could point me to would be highly appreciated.

Thank you for your assistance and for your continued work on this project!

@mcam10
Copy link

mcam10 commented Dec 20, 2024

Yeah this would need to done on the fastapi side.. unless theres a way in cog to provide overrides?
https://fastapi.tiangolo.com/tutorial/metadata/#openapi-url @kosukekurimoto

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