Skip to content

API - Mesas

Endpoints

GET /t/:slug/tables

Lista todas as mesas.

Response:

json
[
  {
    "_id": "...",
    "number": 1,
    "capacity": 4,
    "status": "available"
  },
  {
    "_id": "...",
    "number": 2,
    "capacity": 6,
    "status": "occupied"
  }
]

POST /t/:slug/tables

Cria uma nova mesa.

Body:

json
{
  "number": 5,
  "capacity": 8
}

PUT /t/:slug/tables/:id

Atualiza uma mesa.

DELETE /t/:slug/tables/:id

Remove uma mesa.

Status

StatusDescrição
availableLivre
occupiedOccupied
reservedReservada

Lançado sob a licença MIT.