These REST calls define separate demo modes for the cabinet. Note they do not work all in the same way. Some might have state, some don’t.
URL |
|
---|---|
Method | PUT |
Description | Switches on 3-6 random lights, with a number randomised between 1 and 5. This demo is disabled by switching all lights off, or by pushing all lights. This demo mode is stateless. |
Request | Ignored |
Response | HTTP204 when successful |
Possible Errors | None |
Status | IMPLEMENTED |
URL |
|
---|---|
Method | PUT |
Description | Enables a stateful demo mode.
|
Request | { "mode": "barcode|off" } |
Response | HTTP204 when successful Subsequent GET calls to |
Possible Errors | None |
Status | PENDING |
URL |
|
---|---|
Method | POST |
Description | Triggers the processing of barcode Ignored otherwise. |
Request | None |
Response | HTTP204 when successful |
Possible Errors | None |
Status | PENDING |
Extra Information | The following barcodes will have effect:
When a ‘new’ code is sent, any previous state will be reset. |
Add Comment