Versions Compared

Key

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

General request format:

POST  http://IP-addressAxxonPSIM_user_login:AxxonPSIM_user_password@IP address:port/firserver/ReadPersons

Request parameters:

ParameterRequiredParameter description
server_idYes

ID of the Face

Recognition Server

recognition server in

the

Face PSIM

software package

idNo
Intellect

ID of the Axxon PSIM user

ID

If not specified, the response

will return

returns information about all users

pageNo

Number of pages with results

pages

If not specified, then page = 1

pageSize

No
Results

Number of results per page

If not specified, then pageSize = 1

, i.e. there will be 1 result on 1 page

, that is, there is one result on one page

departmentFilter

No 

ID of the department

Request example:

POST POST http://1271:1@127.0.0.1:10000/firserver/ReadPersons

Get information about users from the entire face database

Code Block
{
 "server_id": "1",
 "objectType": "PERSON",
 "id": [
 
 ],
 "page": 1,
 "pageSize": 2
}

...

Get information about users from a specified department

Code Block
{
 "server_id": "1",
 "departmentFilter":"1"
 "objectType": "PERSON",
 "id": [
 
 ],
 "page": 1,
 "pageSize": 2
}

Request headlines:

HeadlineHeadline description
AllowReturns the HTTP method used in request
Content-LengthShows the size of characters in bytes , received in the request
Content-TypeReturns the type of received request
ServerSpecifies the server from which the request comes
Access-Control-Request-MethodReturns the HTTP method that can be used in the request
Access-Control-OriginIndicates if Shows if the server response can be accessed by the code that sends the a request from this source can access the server response
DateShows the time of the request

Response example:

Expand
titleClick to expand...


Code Block
"PersonList": [
	{
            "Id": "1CEE737C-B5D4-EB11-AC0A-B42E999B6711",
            "Name": "",
            "Surname": "1CEE737C-B5D4-EB11-AC0A-B42E999B6711",
            "Patronymic": "",
            "Department": "3",
            "Comment": "",
            "Timestamp": "2021-06-24T06:29:16.199",
            "ImageId": "1EEE737C-B5D4-EB11-AC0A-B42E999B6711",
            "AutoCreated": true,
            "LastRecognitionTimestamp": "2021-06-24T06:29:28.270",
            "RecognitionCount": 1,
	}
],
 "Total": 220,
 "Response": {
 "Status": "OK"
 }


Users are listed The response returns users in the response in order of time of their adding when they were added to the database (last most recently added at first).

Using the identifier from the PersonList.ImageId parameter, you can get the user's photo with a separate query. See Getting Get an image by ID.

Response parameters:

ParameterParameter description
PersonListList of users with information from the face database
of persons
idUser identifier from the face database
nameName
surnameSurname
patronymicPatronymic
departmentDepartment
commentComment
timestampTime of adding a face to the
base
database of reference faces in UTC+0 format
ImageId
Reference
Identifier of the reference face image
identifier
from the face database
AutoCreated

true

,

if the unrecognized face

was

is added automatically

LastRecognitionTimestamp

Time of the last

pass

access in UTC+0 format

RecognitionCountNumber of
passes
accesses
TotalTotal users in the face database
SourceID of the server in GUID format
ResponseResponse
Status
Completed
Status of the completed request
status
:
OK - successful
OK—successful, if
error - see 
error—see List of possible errors of the Face
Recognition Server
recognition server