Get modes frequency
Allows you to retrieve a list of modes or stages with their frequency of usage for the 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}/frequency_by_mode
curl \
-X GET http://localhost:4000/api/booths/{id}/frequency_by_mode?from=string&to=string
Response examples (200)
{
"data": [
{
"mode": "Spray Mode",
"frequency": 41
}
]
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}