R

Ravina • 3.96K Points
Extraordinary

Q. What does the `title` argument in FastAPI decorators do?

  • (A) It changes the HTML page title
  • (B) It sets the function name
  • (C) It adds a title to the OpenAPI schema for the endpoint
  • (D) It defines a new route
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina

The `title` parameter adds metadata to the OpenAPI documentation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.