Versions Compared

Key

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

URL

http://<<ip address>>/rest/controller/«controllerno»/tag/«tagno»

Method

GET

Description

Receives information of a tag. This is a low-level call. If the value was set earlier by the tag PUT call, value and state will be sent

Note

WIll only work if cabinet is in mode tag. Refer to Cabinet to set cabinet in the correct mode.

controllerno and tagno are numbers.

Info

For the standardised PTL cabinet, controller 1 is the front, controller 2 is the back. Tag IDs are numbered from 11 upwards (left-to-right, bottom-to-top).

Response

Code Block
languagejson
{
  "model": «model»,
  ["value": «lastdisplayedvalue»,
  "state": «state»]
}

Possible Error

HTTP404 with no body when tag does not exist (this may include non-existence of controller)

Status

Status
colourYellow
titlepending

URL

http://<<ip address>>/rest/controller/«controllerno»/tag/«tagno»

Method

PUT

Description

Sets value and color on a tag. This is a low-level call, no check is done on existence of the tag, only on the controller

Note

WIll only work if cabinet in de in mode tag. Refer to Cabinet to set cabinet in the correct mode.

controllerno and tagno are numbers.

Info

For the standardised PTL cabinet, controller 1 is the front, controller 2 is the back. Tag IDs are numbered from 11 upwards (left-to-right, bottom-to-top).

Request

Code Block
languagejson
{
  "value": «valuetodisplay»,
  ["color": "red|green|orange|blue|pink|cyan"]
}

color is optional. When no color is chosen, it defaults to red.

Response

HTTP204 when successful

Possible Errors

HTTP400 when request was invalid

Code Block
{
  "message": «human readable error»
}

HTTP404 with no body when controller does not exist

Status

Status
colourYellow
titlepending