How to disable Swagger ui documentation in Fastapi for production server? i need disable fastapi documentation
How to disable Swagger ui documentation in Fastapi for production server? i need disable fastapi documentation
Construct your app with docs_url=None and redoc_url=None and FastAPI won't mount those endpoints.
app = FastAPI(docs_url=None, redoc_url=None)