link
Extract request body
Use model in endpoint
@app.post("/items/") def create_item(item: Item): return item