List facilities
Allows you to retrieve the paginated list of facilities that you have access to.
GET /api/facilities
curl \
-X GET http://localhost:4000/api/facilities
Response examples (200)
{
"data": [
{
"id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf3",
"name": "Test Facility",
"booths": 1,
"status": "active",
"region_id": "392098bb-ac91-010c-aaa1-9032b19b8cf4",
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4",
"working_hours": []
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (200)
{
"data": [
{
"id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf3",
"name": "Test Facility",
"booths": 1,
"status": "active",
"region_id": "392098bb-ac91-010c-aaa1-9032b19b8cf4",
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4",
"working_hours": []
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}