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

Function get_sample_data

python/flask/endpoints/routes.py:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7@api_bp.get("/api/data")
8def get_sample_data():
9 return jsonify(
10 {
11 "data": [
12 {"id": 1, "name": "Sample Item 1", "value": 100},
13 {"id": 2, "name": "Sample Item 2", "value": 200},
14 {"id": 3, "name": "Sample Item 3", "value": 300},
15 ],
16 "total": 3,
17 "timestamp": "2024-01-01T00:00:00Z",
18 }
19 )
20
21
22@api_bp.get("/api/items/<int:item_id>")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected