S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How are path parameters declared in FastAPI routes?

  • (A) /{parameter}
  • (B) <parameter>
  • (C) [parameter]
  • (D) :parameter
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey

FastAPI uses curly braces `{}` to define path parameters in the URL.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.