R

Ravina • 3.96K Points
Extraordinary

Q. How does FastAPI know which values to inject into parameters?

  • (A) Based on parameter order
  • (B) From decorators
  • (C) Using type hints and annotations
  • (D) From default values
  • Correct Answer - Option(C)
  • Views: 47
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
FastAPI uses type hints to determine whether a parameter should come from path, query, or body.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.