S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does `response_model` in FastAPI help with?

  • (A) Setting HTTP response codes
  • (B) Generating error pages
  • (C) Filtering response output
  • (D) Formatting URLs
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey
`response_model` filters and validates the response data using Pydantic.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.