Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL

http://<<ip address>>/rest/cabinet/demo/random-pick

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 (see lighttest above), or by pushing all lights.

This demo mode is stateless.

Request

Ignored

Response

HTTP204 when successful

Possible Errors

None

Status

Status
colourGreen
titleimplemented

URL

http://<<ip address>>/rest/cabinet/demo/mode

Method

PUT

Description

Enables a stateful demo mode.

barcode is the mode that accepts different barcodes to run demos (see below).

off switches off all demo modes.

Request

Code Block
{
    "mode": "barcode|off"
}

Response

HTTP204 when successful

Subsequent GET calls to rest/cabinet will have barcode set in the demo mode field, when switched on, or off when switched off.

Possible Errors

None

Status

Status
colourYellow
titlepending

URL

http://<<ip address>>/rest/cabinet/demo/barcode/«barcode»

Method

POST

Description

Triggers the processing of barcode «barcode» when in demo mode barcode.

Ignored otherwise.

Request

None

Response

HTTP204 when successful

Possible Errors

None

Status

Status
colourYellow
titlepending

Extra Information

The following barcodes will have effect:

  • Starting with a 1: The pick demo will be triggered:

    • A random light will light up, with a random number.

    • When the light is clicked, the next will light up.

    • This will repeat three times.

When a ‘new’ code is sent, any previous state will be reset.