List all opening hours for legacy API

Changed on
get/opening_hours/instances

Request

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

Query parameters

_format'json' required

Request format

from_datestring date required

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

to_datestring date required

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

nidinteger[] required

The id(s) of the branch(es) for which to retrieve opening hours. Can be a single id or a comma-separated list of ids.

Response

OK

nidinteger required

The node Id of the branch the opening hours instance belongs to.

category_tidinteger required

The (t)id of the opening hours category.

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

noticestring nullable required

Additional notice regarding the opening hours.

Example response

[
  {
    "start_time": "09:00",
    "end_time": "17:00"
  }
]

Changes