link
Define output model
Specify response model
@app.post("/items/", response_model=Item) def create_item(item: Item): return item