R

Ravina • 3.96K Points
Extraordinary

Q. What is returned by default if no response model is defined in FastAPI?

  • (A) Plain text
  • (B) JSON
  • (C) HTML
  • (D) XML
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
FastAPI returns data as JSON by default if no `response_model` is specified.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.