List Dining Areas with Tables
Retrieve all dining areas for the restaurant, each with their associated tables including cover limits.
Authorization
bearerAuth AuthorizationBearer <token>
Supports two token types:
- Restaurant tokens — API tokens with
restaurant-apiability, issued per restaurant. - User tokens — Personal access tokens with
mobile-accessability (e.g. for the mobile app). When managing multiple restaurants, includeX-Restaurant-Id: <id>header.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://devrms.tabdevx.com/api/restaurant/dining-areas-with-tables"{
"data": [
{
"id": 10,
"name": "Main Hall",
"tables": [
{
"id": 1,
"name": "T1",
"min_covers": 2,
"max_covers": 4
},
{
"id": 2,
"name": "T2",
"min_covers": 2,
"max_covers": 2
}
]
},
{
"id": 20,
"name": "Terrace",
"tables": [
{
"id": 3,
"name": "T3",
"min_covers": 4,
"max_covers": 8
}
]
}
]
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}