Days API

Authentication

You can read all data anonymously.

List days of a canteen

GET /canteens/:id/days

Parameters

start
Optional string of a date in following format: YYYY-MM-DD. If no start date is given it defaults to today.

You can use the limit parameter from pagination to specify a range of days.

Response

Do not expect a resource for every day. There can be days without a resource.

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

Get a single day

GET /canteens/:canteen_id/days/:day_date

Response

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