Documentation Error:
Notice definition is “zone” (correct) and example is “device” (looks like a copy & paste error with the previous example):
Definition
https://api.rach.io/1/public/zone/:idExamples
curl -X GET -H “Content-Type: application/json” -H “Authorization: Bearer 8e600a4c-0027-4a9a-9bda-dc8d5c90350d” https://api.rach.io/1/public/device/99363e8a-4418-11e4-b184-164230d1df90
Inconsistency?
Just curious why some API calls use params:
curl -X GET -H “Content-Type: application/json” -H “Authorization: Bearer 8e600a4c-0027-4a9a-9bda-ab8d5c90350d” https://api.rach.io/1/public/device/2a5e7d3c-c140-4e2e-91a1-a212a518adc5/event?startTime=1414818000000&endTime=1415739608103
and some use body:
curl -X PUT -H “Content-Type: application/json” -H “Authorization: Bearer 8e600a4c-0027-4a9a-9bda-dc8d5c90350d” -d ‘{ “id” : “d3e99d27-25e4-47dd-b354-1db5a84c99d7”, “duration” : 86400 }’ https://api.rach.io/1/public/device/rain_delay