MCPcopy Index your code
hub / github.com/fastapi/fastapi / read_own_items

Function read_own_items

docs_src/security/tutorial005_py310.py:171–174  ·  view source on GitHub ↗
(
    current_user: User = Security(get_current_active_user, scopes=["items"]),
)

Source from the content-addressed store, hash-verified

169
170@app.get("/users/me/items/")
171async def read_own_items(
172 current_user: User = Security(get_current_active_user, scopes=["items"]),
173):
174 return [{"item_id": "Foo", "owner": current_user.username}]
175
176
177@app.get("/status/")

Callers

nothing calls this directly

Calls 1

SecurityClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…