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

Function path_example

tests/test_schema_extra_examples.py:88–93  ·  view source on GitHub ↗
(
            item_id: str = Path(
                example="item_1",
            ),
        )

Source from the content-addressed store, hash-verified

86
87 @app.get("/path_example/{item_id}")
88 def path_example(
89 item_id: str = Path(
90 example="item_1",
91 ),
92 ):
93 return item_id
94
95 @app.get("/path_examples/{item_id}")
96 def path_examples(

Callers

nothing calls this directly

Calls 1

PathClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…