Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.

Previous page Next page


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

Compare with Current View Page History

« Previous Version 11 Current »

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

The last event ID request

GET http://<IP address>:<Port>/core/GetLastID

Request example:

GET 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.

GET http://<IP address>:<Port>/core/Events?keepAliveTime={keepAliveTime}&startingID={startingID}

Request parameters:

Parameter

Required

Description

keepAliveTimeNo

The time interval in seconds, within which the server will send a json of the {"time":"2019-03-19T14:56:26.317"} form to the client, containing the server time in UTC. The default is 5 seconds

startingIDNo

ID of the event starting from which it is necessary to receive events


Request example:

GET http://localhost:40000/core/Events?keepAliveTime=5&startingID=8FFCDF07-5E4A-E911-95AE-F894C2A95BA4

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

The request of the list of all created readers

GET http://<IP address>:<Port>/core/GetReaders

Request example:

http://localhost:22441/core/GetReaders

with the body:

{
"detail": true
}

Response example:

{
    "objects": [
        {
            "id": "1.1.1",
            "guid": "04EF2B52-90D2-EC11-9515-D8BBC1166DF4",
            "name": "ACS emulator 1.1.1 Reader", 
            "_address": "1",
            "_marker": "",
            "flags": "",
            "objname": "ACS emulator 1.1.1 Reader",
            "objtype": "ACFA_EMULATOR_ACS_READER",
            "parent_id": "1.1",
            "parent_type": "ACFA_EMULATOR_ACS_CONTROLLER",
            "region_in": "",
            "region_out": ""
        },
        {
            "id": "1",
            "guid": "02FA79B0-A5D2-EC11-9515-D8BBC1166DF4",
            "name": "Hikvision Control Reader K1F100 1",
            "_marker": "",
            "card_save_mode": "0",
            "flags": "",
            "objname": "Hikvision Control Reader K1F100 1",
            "objtype": "HIK_CR_K1F100_D8E",
            "parent_id": "localhost",
            "parent_type": "SLAVE"
        },
        {
            "id": "1",
            "guid": "E7065496-A5D2-EC11-9515-D8BBC1166DF4",
            "name": "Control Reader PR-x08 1",
            "_marker": "",
            "card_bits": "16",
            "card_start": "0",
            "fc_bits": "8",
            "fc_start": "16",
            "flags": "",
            "objname": "Control Reader PR-x08 1",
            "objtype": "PARSEC_PR_X08",
            "parent_id": "localhost",
            "parent_type": "SLAVE",
            "serial_number": ""
        }
    ]
}


  • No labels