Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
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}"
)
20
def
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_encoder
Function · 0.90
Tested by
no test coverage detected