Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

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

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, or by pushing all lights.

This demo mode is stateless.

Request

Ignored

Response

HTTP204 when successful

Possible Errors

None

Status

IMPLEMENTED

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

{
    "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

PENDING

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

PENDING

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.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.