![IDS NXT Manual Download Page 12](http://html2.mh-extra.com/html/ids/nxt/nxt_manual_3750479012.webp)
March 2021
12
IDS NXT: REST interface
5.2 Server sent events
In addition to the proprietary interface (deprecated), the events can also be requested using SSE. To do this,
the request must include an HTTP header (Accept: text/eventstream) and the events (see
) are
then transferred in the data block.
GET /events HTTP/1.1
Accept: text/eventstream
HTTP/1.1 200 OK
Content-Type: text/eventstream
data:GET /camera/image
data:GET /statistics
data:GET /statistics
5.3 Event syntax
The event contains the method and URL that has changed. This is used to avoid having to retrieve the
OPTIONS after every change.
Example
GET /deviceinfo
OPTIONS /vapps/<
vapp
>/configurables
5.4 Restrictions
There are some resources (paths) that are not covered by the event channel. These are:
Path
Restriction
Justification
/deviceinfo
System information (temperature,
RAM, etc.)
CPU is updated with event.
The values are only determined
when requested
These values can be requested cyclically.