cog icon indicating copy to clipboard operation
cog copied to clipboard

How to Disable Swagger UI and openapi.json in Cog

Open kosukekurimoto opened this issue 1 year ago • 1 comments

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!

kosukekurimoto avatar Oct 11 '24 12:10 kosukekurimoto

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

mcam10 avatar Dec 20 '24 17:12 mcam10