R

Ravina • 3.96K Points
Extraordinary

Q. How can you disable Swagger UI in FastAPI?

  • (A) Set `docs_url=None` in FastAPI()
  • (B) Call `app.disable_docs()`
  • (C) Use `disable_ui=True`
  • (D) Remove all GET routes
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
You can disable Swagger UI by passing `docs_url=None` to the `FastAPI()` constructor.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.