URL |
| |||||
---|---|---|---|---|---|---|
Method | GET | |||||
Description | Receives information on the cabinet. | |||||
Response |
|
|
Status message can be:
When list of messages is empty ( De |
Status
Remarks | v2.0:
v2.1:
|
---|
URL |
|
---|---|
Method | PUT |
Description | Stores information on the cabinet. |
mode
|
tag
|
section
:section
mode will use planks, sections and sides to to control the lights. The websocket will return a plank-section-side combo when button pushed.tag
mode will use direct tags and controller numbers. The websocket will return a controller-tag combo when button pushed.
section
call is done, and the cabinet is in mode tag
(or the other way round), this will result in a HTTP409 Conflict
When | ||||||
Request |
|
---|
|
|
|
Response
HTTP204 when successful
Possible Errors
HTTP400 when request was invalid
Code Block | ||
---|---|---|
| ||
{
"message": «human readable error»
} |
Status
Status | ||||
---|---|---|---|---|
|
URL
http://<<ip address>>/rest/cabinet/lighttest
Method
PUT
Description
Sets the cabinet is lighttest mode: turning light on or off. The light test shows the tag’s address.
Request
language | json |
---|
| ||||||
Response | HTTP204 when successful | |||||
---|---|---|---|---|---|---|
Possible Errors | HTTP400 when request was invalid
|
Remarks |
---|
v2.0
v2.1
|
URL |
|
---|
| |
Method | PUT |
---|---|
Description | Sets the cabinet |
is lighttest mode: turning light on or off. The light test shows the tag’s address. | ||||||
Request |
| |||||
---|---|---|---|---|---|---|
Response | HTTP204 when successful | |||||
Possible Errors | HTTP400 when request was invalid
|
Status
Status | ||||
---|---|---|---|---|
|
URL
http://<<ip address>>/rest/cabinet/teach
Method
GET
Description
Get current state of teach mode
Responses
HTTP204 when not in teach mode
HTTP200 when in teach mode, with following body:
Code Block | ||
---|---|---|
| ||
{
"tag": [«list of tags found»]
} |
Status