...
POST {url}/localtrac/locations/<location_uuid>/scheduleexceptions | ||||||
---|---|---|---|---|---|---|
This route will add/update the schedule exception for each given day provided. | ||||||
Request | ||||||
Headers | ||||||
Authorization | <token> obtained during the Authentication | |||||
Accept | application/json | |||||
Content-Type | application/json | |||||
Body | ||||||
| ||||||
Response (200) - Success | ||||||
Headers | ||||||
Content-type | application/json | |||||
Cache-Control | no-cache,private | |||||
Body | ||||||
| ||||||
Response (400) - Validation Error | ||||||
Headers | ||||||
Content-type | application/json | |||||
Cache-Control | no-cache,private | |||||
Body | ||||||
| ||||||
message | Always the same message of error, indicating that an error happened during the validation process | |||||
errors | An associative array where the key represents the logical path to the data in error and the value represents the error found with the given data. If a key contains “.” character, this means nested array. In the case of an array without keys, the logical number would be taken. |
GET {{base_url}}/localtrac/location/{uuid}locations/<location_uuid>/allSchedules | ||||||
---|---|---|---|---|---|---|
This route will return the list of the location’s opening hours. | ||||||
Request | ||||||
Headers | ||||||
Authorization | <token> obtained during the Authentication | |||||
Accept | application/json | |||||
Response (200) - Success | ||||||
Headers | ||||||
Content-type | application/json | |||||
Cache-Control | no-cache,private | |||||
Body | ||||||
| ||||||
<schedule> |
|
POST{{base_url}}/localtrac/location/{uuid}locations/<location_uuid>/allSchedules | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
This route will add/update the schedule for each provided day of each provided schedule type | ||||||||||
Request | ||||||||||
Headers | ||||||||||
Authorization | <token> obtained during the Authentication | |||||||||
Accept | application/json | |||||||||
Content-Type | application/json | |||||||||
Body (Example) | ||||||||||
| ||||||||||
Schedule ( | 200optionnal) | - Success|||||||||
Headers | ||||||||||
Content-type | application/json | |||||||||
Cache-Control | no-cache,private | |||||||||
Body | ||||||||||
| ||||||||||
Response (400) - Validation Error | ||||||||||
Headers | ||||||||||
Content-type | application/json | |||||||||
Cache-Control | no-cache,private | |||||||||
Body | ||||||||||
| ||||||||||
message | Always the same message of error, indicating that an error happened during the validation process | |||||||||
errors | An associative array where the key represents the logical path to the data in error and the value represents the error found with the given data. If a key contains “.” character, this means nested array. In the case of an array without keys, the logical number would be taken | An associative array where each key is one day of the week. The value of each key is a range of opening hours with “start” and “end” key for each period within a day. The sub array allows multiple values since a day can be opened and closed multiple times per day.
| ||||||||
Response (200) - Success | ||||||||||
Headers | ||||||||||
Content-type | application/json | |||||||||
Cache-Control | no-cache,private | |||||||||
Body | ||||||||||
| ||||||||||
Response (400) - Validation Error | ||||||||||
Headers | ||||||||||
Content-type | application/json | |||||||||
Cache-Control | no-cache,private | |||||||||
Body | ||||||||||
| ||||||||||
message | Always the same message of error, indicating that an error happened during the validation process | |||||||||
errors | An associative array where the key represents the logical path to the data in error and the value represents the error found with the given data. If a key contains “.” character, this means nested array. In the case of an array without keys, the logical number would be taken. |
GET {url}/localtrac/locations/schedules | ||||||
---|---|---|---|---|---|---|
This route will return the list of custom schedule types. | ||||||
Request | ||||||
Headers | ||||||
Authorization | <token> obtained during the Authentication | |||||
Accept | application/json | |||||
Response (200) - Success | ||||||
Headers | ||||||
Content-type | application/json | |||||
Cache-Control | no-cache,private | |||||
Body | ||||||
| ||||||
<schedule type> |
|