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

Function example

tests/test_schema_extra_examples.py:26–27  ·  view source on GitHub ↗
(item: Item = Body(example={"data": "Data in Body example"}))

Source from the content-addressed store, hash-verified

24
25 @app.post("/example/")
26 def example(item: Item = Body(example={"data": "Data in Body example"})):
27 return item
28
29 @app.post("/examples/")
30 def examples(

Callers

nothing calls this directly

Calls 1

BodyClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…