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 | Enables a stateful demo mode or runs a stateless demo.
| ||
Request |
| ||
Response | HTTP204 when successful Subsequent GET calls to 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
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
Status | ||||
---|---|---|---|---|
|
Extra Information | The following barcodes will have effect:
When a ‘new’ code is sent, any previous state will be reset |
---|
URL
http://<<ip address>>/rest/cabinet/demo/scanner
Method
PUT
Description
Sets the scanner serial number to connect to. After a restart, the cabinet will try to connect to this GeneralScan scanner in HID mode.
Request
Code Block |
---|
{
"serial": «scanner serial number»
} |
Response
HTTP204 when successful
Possible Errors
HTTP400 when request is invalid
Status
Status | ||||
---|---|---|---|---|
|
URL
http://<<ip address>>/rest/cabinet/demo/scanner
Method
GET
Description
. |
Response
Code Block |
---|
{
"serial": «scanner serial number»
} |
Status