R

Ravina • 3.96K Points
Extraordinary

Q. How does FastAPI differentiate between a query and body parameter?

  • (A) Query has a default value
  • (B) Body parameters are passed as JSON and annotated with Pydantic
  • (C) Body must be strings
  • (D) Query must be integers
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
FastAPI uses type hints and Pydantic models to identify body parameters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.