These REST calls are used in the 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 | { «barcode»: { "plank": «plank», "section": «section», ... }, ... } |
Status | IMPLEMENTED |
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 | { "exceldata": «base64 encoded xlsx file data» } |
Response | HTTP204 is successful |
Possible Errors | HTTP400 when request was invalid { "message": «human readable error» } |
Status | IMPLEMENTED |
0 Comments