Home / Function/ read_own_items() — fastapi Function Reference

read_own_items() — fastapi Function Reference

Architecture documentation for the read_own_items() function in tutorial005_py39.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  4020a8f3_50e9_d091_db37_dc105dfca458["read_own_items()"]
  b46332e9_4acb_e3b7_ca46_099c78466b55["tutorial005_py39.py"]
  4020a8f3_50e9_d091_db37_dc105dfca458 -->|defined in| b46332e9_4acb_e3b7_ca46_099c78466b55
  style 4020a8f3_50e9_d091_db37_dc105dfca458 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs_src/security/tutorial005_py39.py lines 169–172

async def read_own_items(
    current_user: User = Security(get_current_active_user, scopes=["items"]),
):
    return [{"item_id": "Foo", "owner": current_user.username}]

Domain

Subdomains

Frequently Asked Questions

What does read_own_items() do?
read_own_items() is a function in the fastapi codebase, defined in docs_src/security/tutorial005_py39.py.
Where is read_own_items() defined?
read_own_items() is defined in docs_src/security/tutorial005_py39.py at line 169.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free