All response will have the form
{
"data": "Mixed type holding the content of the response",
"message": "Description of what happened"
}Subsequent response definitions will only detail the expected value of the data field
Series: METHOD /api/v1/series
Moisture: METHOD /api/v1/moisture
Temperature: METHOD /api/v1/temperature
Definition
GET /api/v1/series/list
Response
200 OKon success
[
{
"identifier": "temperature",
"name": "Temperature"
},
{
"identifier": "moisture",
"name": "Moisture"
}
]POST /api/v1/moisture/add
Definition Add a data point to the moisture measurement
Payload
{
"sensor": "sensor name for tagging",
"reading": "sensor reading"
}Response
200 OKon success
GET /api/v1/moisture/list/:limit/:sensor
Defnition Fetch a list of moisture datapoint. By default, return value is limit to 10 data point.
To test if the container is running
curl localhost:49160