R

Ravina • 3.96K Points
Extraordinary

Q. How can you automatically document a response model in FastAPI?

  • (A) By writing docstrings
  • (B) By using JSON schemas
  • (C) By specifying response_model in route decorators
  • (D) By using response_info
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
Use `response_model` in route decorators to auto-generate documentation and enforce response shape.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.