📝 Update code examples in docs for body, replace name create_item with update_item when appropriate (#5913)

This commit is contained in:
Andrey Otto
2024-01-09 21:28:58 +07:00
committed by GitHub
parent d5498274f9
commit e9ffa20c8e
4 changed files with 4 additions and 4 deletions

View File

@@ -13,5 +13,5 @@ app = FastAPI()
@app.put("/items/{item_id}")
async def create_item(item_id: int, item: Item):
async def update_item(item_id: int, item: Item):
return {"item_id": item_id, **item.dict()}