R

Ravina • 3.96K Points
Extraordinary

Q. Which of the following methods is used to define a DELETE endpoint in FastAPI?

  • (A) @app.remove()
  • (B) @app.del()
  • (C) @app.delete()
  • (D) @delete.route()
  • Correct Answer - Option(C)
  • Views: 14
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`@app.delete()` is the correct decorator to define a DELETE endpoint in FastAPI.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.