The requests described below are used when working with the HTTP-Server module.

The last event ID request

http://<IP-address>:<Порт>/core/GetLastID

Request example

http://localhost:40000/core/GetLastID

Response example

{"lastId":"b686658c-764c-e911-8f42-001a7dda710e"}

The event request based on filter

The filter is configured on the settings panel of the HTTP-Server object — see Configuring the HTTP-Server object.

http://<IP-address>:<Port>/core/EventsTest

Request example

http://localhost:40000/core/EventsTest

Response example

{"module":"video.run","protocol_id":"2dc6dfcb-5351-e911-8832-534e57000000","slave_id":"S-UYUTOVA","src_action":"MD_STOP","src_objid":"2","src_objtype":"CAM","time":"2019-03-28T12:20:03.977"}