Go to documentation repository
Documentation for Axxon One 1.0.
Previous page Next page
Web-Server responds to method calls in the form of JSON.
Note
By default the Web-Server port is 80, prefix is / (empty).
Authorization
Authorization is needed for requests. Two types of authorization are supported: Basic and Bearer.
With the Basic authorization type, it is necessary to add user data to all HTTP requests in the following form:
http://[username]:[password]@[IP-address]:[port]/[prefix]
With the Bearer authorization type, the token received from the Web-Server is used (see Bearer authorization).
POST requests must have JSON body.
Time format in requests
In all requests, the time is specified in the YYYYMMDDTHHMMSS format in the timezone UTC+0.
Time interval is specified in some requests, for example:
GET http://IP-address:port/prefix/archive/contents/intervals/{VIDEOSOURCEID}/{ENDTIME}/{BEGINTIME}
These requests return data starting at BEGINTIME and ending at ENDTIME.
If BEGINTIME is not specified, infinite future is considered. If ENDTIME is not specified too, infinite past is considered. The words "past" and "future" can be used to set infinite past and infinite future as well.
Interval sequence corresponds to the ratio between specified BEGINTIME and ENDTIME (in ascending order if BEGINTIME<ENDTIME, and in descending order if ENDTIME<BEGINTIME). Start and end points of interval are returned in its common order, i.e. the interval start time is less than the interval end time or equal to it.
Requests limit
The number of active requests and requests in queue is limited.
The 503 error (Search query rejected. Too many requests.) returns when there are too many requests.