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

Function get_sample_data

python/starlette/api/routes.py:5–16  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

3
4
5async def get_sample_data(request):
6 return JSONResponse(
7 {
8 "data": [
9 {"id": 1, "name": "Sample Item 1", "value": 100},
10 {"id": 2, "name": "Sample Item 2", "value": 200},
11 {"id": 3, "name": "Sample Item 3", "value": 300},
12 ],
13 "total": 3,
14 "timestamp": "2024-01-01T00:00:00Z",
15 }
16 )
17
18
19async def get_item(request):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected