R

Ravina • 3.96K Points
Extraordinary

Q. How does FastAPI detect whether a parameter is a path, query, or body parameter?

  • (A) Using parameter name
  • (B) Using position in function signature
  • (C) Using type hint and default value
  • (D) Using runtime introspection
  • Correct Answer - Option(C)
  • Views: 29
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
FastAPI uses type hints and whether a default value is provided to determine parameter location.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.