MCPcopy
hub / github.com/fastapi/fastapi / update_item

Function update_item

docs_src/encoder/tutorial001_py310.py:20–22  ·  view source on GitHub ↗
(id: str, item: Item)

Source from the content-addressed store, hash-verified

18
19@app.put("/items/{id}")
20def update_item(id: str, item: Item):
21 json_compatible_item_data = jsonable_encoder(item)
22 fake_db[id] = json_compatible_item_data

Callers

nothing calls this directly

Calls 1

jsonable_encoderFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…