Get booth recent stages
Allows you to retrieve the list of stages or modes that a booth has been in since a given start date until now.
Path parameters
-
id of the booth
Query parameters
-
an ISO8601 formatted date to query data from
GET /api/booths/{id}/recent_stages
curl \
-X GET http://localhost:4000/api/booths/{id}/recent_stages?start=string
Response examples (200)
{
"data": [
{
"mode": "Spray Mode",
"end_time": "2024-01-01 05:00:03Z",
"start_time": "2024-01-01 00:00:00Z"
}
],
"page": 1,
"limit": 25,
"pages": 1,
"total": 0
}
Response examples (200)
{
"data": [
{
"mode": "Spray Mode",
"end_time": "2024-01-01 05:00:03Z",
"start_time": "2024-01-01 00:00:00Z"
}
],
"page": 1,
"limit": 25,
"pages": 1,
"total": 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"
}