Base: https://lokys.lt/wp-json/lokys/v1
Send POST bodies as JSON with Content-Type: application/json.
| Function | Request |
|---|---|
| Restaurant details and rules | GET /info |
| Menu | GET /menu?lang=en (en or lt) |
| Available times | GET /availability?date=YYYY-MM-DD&party_size=N |
| Book | POST /reservations — required: date, time (HH:MM), party_size (1–100), name, email, phone; optional: message |
| Cancel | POST /reservations/cancel — booking_id, matching email |
| Full specification | GET /openapi.json |
Workflow: check availability → select an available_slots time → collect guest details and consent → book. Save booking_id; report returned status accurately: pending requires restaurant confirmation. Handle failures using the returned message.