S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How do you define a route in FastAPI?

  • (A) app.route('/path')
  • (B) app.get('/path')
  • (C) route.get('/path')
  • (D) get.app('/path')
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey
FastAPI uses decorators like app.get(), app.post(), etc. to define routes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.