List all opening hours

Changed on
get/api/v1/opening_hours

Request

  • Base URL: http://varnish:8080
  • URL: http://varnish:8080/api/v1/opening_hours
  • Auth: cookie (a scheme the document does not define)

Query parameters

_format'json' required

Request format

branch_idinteger

The id of the branch for which to retrieve opening hours.

from_datestring date

Retrieve opening hours which occur after and including the provided date. In ISO 8601 format.

to_datestring date

Retrieve opening hours which occur before and including the provided date. In ISO 8601 format.

Response

OK

idinteger required

An serial unique id of the opening hours instance.

datestring date required

The date which the opening hours applies to. In ISO 8601 format.

start_timestring required

When the opening hours start. In format HH:MM

end_timestring required

When the opening hours end. In format HH:MM

branch_idinteger required

The id for the branch the instance belongs to

branch_namestring required

The name of the branch the instance belongs to

branch_isil_idstring

External branch id (ISIL)

Example response

[
  {
    "category": {
      "color": "#ff0099"
    },
    "start_time": "09:00",
    "end_time": "17:00",
    "branch_isil_id": "DK-710100"
  }
]

Changes