Tables

Get tables

This operation returns a list of restaurant tables.

Note: This operation needs Authentication and supports the following JSON:API features:

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.

Property
Type
Contract
Description

data

array of object table

required, max 1000 items

The document's "primary data".

links

required

A links object describing cursor pagination links.

table

Property
Type
Contract
Description

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.

attributes

required

An attributes object representing some of the resource's data.

relationships

required

A relationships object describing relationships between the resource and other JSON:API resources.

table_attributes

Property
Type
Contract
Description

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

Property
Type
Contract
Description

area

object

required

Details of the table area.

Property
Type
Contract
Description

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