Skip to content

Days

List days of a canteen

GET /api/v2/canteens/{canteen_id}/days HTTP/2.0

Parameters

start YYYY-MM-DD
Optional start date for listing available days. Defaults to current day if no nothing is specified.

Warning

Canteens may not return have data for every day. If there is no data, closing information, or other details for a day, that day will not be listed.

Response

HTTP/2.0 200 Ok
Content-Type: application/json; charset=utf-8

[
  {
    "date": "2012-10-12",
    "closed": false
  },
  {
    "date": "2012-10-15",
    "closed": true
  }
]

Get a day

GET /canteens/{canteen_id}/days/{date} HTTP/2.0

Response

HTTP/2.0 200 Ok
Content-Type: application/json; charset=utf-8

{
  "date": "2012-10-12",
  "closed": false
}