MCPcopy Create free account
hub / github.com/vercel/examples / get_sample_data

Function get_sample_data

python/fastapi/main.py:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12@app.get("/api/data")
13def get_sample_data():
14 return {
15 "data": [
16 {"id": 1, "name": "Sample Item 1", "value": 100},
17 {"id": 2, "name": "Sample Item 2", "value": 200},
18 {"id": 3, "name": "Sample Item 3", "value": 300}
19 ],
20 "total": 3,
21 "timestamp": "2024-01-01T00:00:00Z"
22 }
23
24
25@app.get("/api/items/{item_id}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected