GET
/sensors/{sensor_id}/readings
curl \
--request GET 'http://localhost:8000/sensors/1/readings'
Response examples (200)
[
{
"id": 1,
"value": 23.5,
"created_at": "2024-12-21T10:00:00Z",
"updated_at": "2024-12-21T12:00:00Z"
}
]
Response examples (403)
{
"message": "Unauthorized."
}