Cabinet
URL |
|
---|---|
Method | GET |
Description | Receives information on the cabinet. |
Response | { "planks": «numberofplanks», "sections": «numberofsections», "name": «nameofcabinet», "status": [«listofhumanreadablestatusmessages»] } Status message can be:
When list of messages is empty, cabinet is “OK”. |
Status | IMPLEMENTED |
URL |
|
---|---|
Method | PUT |
Description | Stores information on the cabinet. |
Request | { "planks": «numberofplanks», "sections": «numberofsections», "name": «nameofcabinet» } |
Response | HTTP204 when successful |
Possible Errors | HTTP400 when request was invalid { "message": «human readable error» } |
Status | IMPLEMENTED |
URL |
|
---|---|
Method | PUT |
Description | Sets the cabinet is demo mode: turning light on or off. When in demo, it lights a random light on the front and when that is pushed, its back counterpart goes on. After that, another random front light goes on. |
Request | { "mode": "on" | "off" } |
Response | HTTP204 when successful |
Possible Errors | HTTP400 when request was invalid { "message": «human readable error» } |
Status | PENDING |
URL |
|
---|---|
Method | PUT |
Description | Sets the cabinet is lighttest mode: turning light on or off. The light test shows the tag’s address. |
Request | { "mode": "on" | "off" } |
Response | HTTP204 when successful |
Possible Errors | HTTP400 when request was invalid { "message": «human readable error» } |
Status | IMPLEMENTED |
URL |
|
---|---|
Method | PUT |
Description | Sets the cabinet in or out of teach mode. |
Request | { "mode": "on" | "off" } |
Response | HTTP204 when successful |
Possible Errors | HTTP400 when request was invalid { "message": «human readable error» } |
Status | NOT IN PROTOTYPE |
URL |
|
---|---|
Method | GET |
Description | Get current state of teach mode |
Responses | HTTP204 when not in teach mode HTTP200 when in teach mode, with following body: { "tag": [«list of tags found»] } |
Status | NOT IN PROTOTYPE |
Section
Plank and section numbering is 1-based. So if 4 planks are available, they are numbered 1 to 4.
URL |
|
---|---|
Method | GET |
Description | Receives information of section.
|
Response | { "value": «lastdisplayedvalue», "state": «state» } |
Possible Error | HTTP404 with no body when section does not exist. |
Status | IMPLEMENTED |
URL |
|
---|---|
Method | PUT |
Description | Sets value on display.
|
Request | { "value": «valuetodisplay» } |
Response | HTTP204 when successful |
Possible Errors | HTTP400 when request was invalid { "message": «human readable error» } HTTP404 with no body when section does not exist |
Status | IMPLEMENTED |
Add Comment