Returns the full detail of a single sensor reading by its database ID. The response includes eager-loaded device name and sensor type details (name and measurement unit).Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GaelCeballos/Smart_Enviro_Backend/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
GET/api/sensor-data/{id}
Auth: None required. This is a public apiResource route.
Path Parameters
The numeric primary key of the sensor reading to retrieve. Must correspond to an existing record in the
sensor_data table.Example Request
Responses
200 OK
The reading was found. Returns the full record with eager-loadeddevice and sensor_type relationships.
Always
"success" on a 200 response.The full sensor reading record.
404 Not Found
No sensor reading with the givenid exists in the database.