(item_id: int)
| 24 | |
| 25 | @app.get("/api/items/{item_id}") |
| 26 | def get_item(item_id: int): |
| 27 | return { |
| 28 | "item": { |
| 29 | "id": item_id, |
| 30 | "name": "Sample Item " + str(item_id), |
| 31 | "value": item_id * 100 |
| 32 | }, |
| 33 | "timestamp": "2024-01-01T00:00:00Z" |
| 34 | } |
| 35 | |
| 36 | |
| 37 | @app.get("/", response_class=HTMLResponse) |
nothing calls this directly
no outgoing calls
no test coverage detected