Reading Opening Times Rules

Required Permission

can-retrieve-locations

See Auth* (scopes).

Request

GET /locations/<id>/openingTimesRules

Response

HTTP/1.1 200 OK
{
   "openingTimesRules":[
      {
         "rule":"every Monday",
         "openingClosingTimes":[
            {
               "openingAt":"09:00",
               "closingAt":"18:00"
            }
         ]
      },
      {
         "rule":"every Tuesday",
         "openingClosingTimes":[
            {
               "openingAt":"09:00",
               "closingAt":"18:00"
            }
         ]
      }
   ],
   "links":[
      {
         "rel":"self",
         "href":"/locations/6b2e279d-8afd-4785-8ea4-b06739fb0f14/openingTimesRules"
      },
      {
         "rel":"location",
         "href":"/locations/6b2e279d-8afd-4785-8ea4-b06739fb0f14"
      }
   ]
}

Failure

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Location id doesn't match an existing location:

HTTP/1.1 404 NOT FOUND

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""