link
fastapi/post-route

POST Route

Create POST endpoint

routing
http

Command

Examples

Create new item

@app.post("/items/")
  def create_item(item: Item):
      db.save(item)
      return item