Versions Compared

Key

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

Cabinet

...

URL

...

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

...

Method

...

GET

...

Description

...

Receives information on the cabinet.

...

Response

...

Code Block
languagejson
{ 
  "planks": «numberofplanks», 
  "sections": «numberofsections» 
}

Section

...

URL

The API enables any programmer to directly control the PTL Control using a REST interface and a websocket.

The base address for the REST interface is http://<<ip address>>:5000/rest

...

Method

...

GET

...

Description

...

Receives information of section.

...

Response

...

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

...

Possible Error

...

HTTP404 with no body when section does not exist.

...

URL

...

.

The address for the websocket is ws://<<ip address>>

...

Method

...

PUT

...

Description

...

Sets value on display.

...

Request

...

Code Block
languagejson
{
  "value": «valuetodisplay»
}

...

Response

...

HTTP204 when successful

...

Possible Errors

HTTP400 when request was invalid

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

...

:5000/ws.

The API has the following actions available:

Child pages (Children Display)