These REST calls are used in the data mapping feature, where a user can upload mapping info and use that info to switch on light.
URL |
| ||
---|---|---|---|
Method | GET | ||
Description | Receive the current existing mapping. Returns an empty object when no mapping is set. | ||
Response |
|
URL |
|
---|---|
Method | POST |
Description | Upload a new XLSX file to register a mapping. It will read the columns On upload, all existing data will be erased and the new data is loaded. |
Request |
Base64 encoded XLSX data.
TheContent-Type
header must be application/octet-stream
| |||
Response | HTTP204 when successful | ||
Possible Errors | HTTP400 when request was invalid
|
URL |
| ||
---|---|---|---|
Method | PUT | ||
Description | Set the light that corresponds to the barcode in the previously uploaded mapping. This behaves the same as the | ||
Request |
| ||
Response | HTTP204 |
when successful |
Possible |
---|
errors |
---|
HTTP400 when |
Content-Type
header was given.Status
request was invalid
HTTP404 with no body when mapping for barcode does not exist HTTP409 when mapping was invalid |