R

Ravina • 3.96K Points
Extraordinary

Q. What is the purpose of the `tags` parameter in FastAPI route decorators?

  • (A) To restrict access
  • (B) To categorize endpoints in API docs
  • (C) To define middleware
  • (D) To trigger background tasks
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`tags` are used to group and categorize endpoints in the autogenerated docs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.