R

Ravina • 3.96K Points
Extraordinary

Q. How can you modify the title of the OpenAPI docs in FastAPI?

  • (A) app.settings.title = 'New Title'
  • (B) app.openapi_title = 'New Title'
  • (C) FastAPI(title='New Title')
  • (D) app.docs_title = 'New Title'
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina

You can pass a title to `FastAPI(title='New Title')` when creating the app instance.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.