Tables
Get tables
This operation returns a list of restaurant tables.
Note: This operation needs Authentication and supports the following JSON:API features:
Sparse fieldsets - supports all fields of
table
withfields
query parameter.
Request
GET
[PlatformAddress]/v1/tables
Response
{
"data": [
{
"id": "286ef74f-e37f-477f-bcda-77f8fbfd13ea",
"type": "tables",
"attributes": {
"name": "Table number 1",
"numberOfSeats": 4,
"createdAt": "2024-11-13T11:29:00Z",
"updatedAt": "2024-11-15T11:29:00Z"
},
"relationships": {
"area": {
"data": {
"id": "c53372e2-9aa1-452a-8965-2ea3fa514fb2",
"type": "areas"
}
}
}
}
],
"links": {
"prev": "https://api.mews-demo.com/pos/v1/tables?page%5Bbefore%5D=NA&page%5Bsize%5D=1",
"next": "https://api.mews-demo.com/pos/v1/tables?page%5Bafter%5D=NA&page%5Bsize%5D=1"
}
}
Below is a list of all possible fields this endpoint can return including relationships fields fetched with include query parameter.
table
id
string
required, max length 36 characters
Universally unique ID (UUID) that identifies the related object.
type
string
required
The type member is used to describe resource objects that share common attributes and relationships.
relationships
required
A relationships object describing relationships between the resource and other JSON:API resources.
table_attributes
name
string
required, max length 255 characters
The name of the table.
numberOfSeats
integer
required
Number of people that can be seated at this table.
createdAt
string
required, max length 25 characters
Created at timestamp in RFC 3339 format.
updatedAt
string
required, max length 25 characters
Updated at timestamp in RFC 3339 format.
table_relationships
area
object
required
Details of the table area.
table_pagination_links
prev
string
required, max length 1024 characters
The link to the previous page of results.
next
string
required, max length 1024 characters
The link to the next page of results.
Last updated