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
Status | ||||
---|---|---|---|---|
|
URL |
| ||||||
---|---|---|---|---|---|---|---|
Method | PUT | ||||||
Description | Enables a stateful demo mode or runs a stateless demo.
| ||||||
Request |
| ||||||
Response | HTTP204 when successful Subsequent GET calls to | Possible Errors | Noneno stateful mode is selected. Stateless modes will result in the When the cabinet is already in a demo mode, it will be completely reset and the new mode will be started. | ||||
Possible Errors | HTTP400 when an invalid demo mode is selected. Demo mode will be | ||||||
Status |
| ||||||
Demo descriptions |
Switches on 3-6 random lights, with a number randomized between 1 and 5. This demo is disabled by switching all lights off, or by pushing all lights. This demo mode is stateless.
Enables the barcode scanning demos. See below for behavior when a barcode is sent. The demo mode is stateful. |
URL |
| ||||||
---|---|---|---|---|---|---|---|
Method | POST | ||||||
Description | Triggers the processing of barcode Ignored otherwise. | ||||||
Request | None | ||||||
Response | HTTP204 when successful | ||||||
Possible Errors | None | ||||||
Status |
| ||||||
Extra Information | The following barcodes will have effect:
When a ‘new’ code is sent, any previous state will be reset. |