()
| 6 | |
| 7 | @api_bp.get("/api/data") |
| 8 | def 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>") |
nothing calls this directly
no outgoing calls
no test coverage detected