MCPcopy
hub / github.com/fastapi/fastapi / path_examples

Function path_examples

tests/test_schema_extra_examples.py:96–101  ·  view source on GitHub ↗
(
        item_id: str = Path(
            examples=["item_1", "item_2"],
        ),
    )

Source from the content-addressed store, hash-verified

94
95 @app.get("/path_examples/{item_id}")
96 def path_examples(
97 item_id: str = Path(
98 examples=["item_1", "item_2"],
99 ),
100 ):
101 return item_id
102
103 with pytest.warns(FastAPIDeprecationWarning):
104

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…