Get modes duration
Allows you to retrieve the list of modes and their duration for a given booth in a given date range.
Path parameters
-
id of the booth
Query parameters
-
an ISO8601 formatted date to query data from
-
an ISO8601 formatted date to query data until
GET /api/booths/{id}/duration_by_mode
curl \
-X GET http://localhost:4000/api/booths/{id}/duration_by_mode?from=string&to=string
Response examples (200)
{
"data": [
{
"mode": "Spray Mode",
"duration": 5.0,
"percentage": 55.0
}
]
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}