S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the purpose of `Path()` in FastAPI?

  • (A) To define cookies
  • (B) To extract form values
  • (C) To provide metadata and validation for path parameters
  • (D) To create routes
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey

`Path()` allows adding validation and metadata for path parameters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.