Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Sending reactions and events to Axxon PSIM using HTTP request  Sending XML file Next page


To test HTTP API one can send HTTP API commands using curl tool. This tool is available at https://curl.haxx.se/.

To use the tool start the Windows command line and go to <curl installation directory>\curl-7.46.0-win64\bin folder.

Request example:

Find the example of the command to create the archive export task below as in the case of a request to a Single Data Center (see Archive export):

curl -H "Content-Type: application/json" -X POST -d "{ \"CameraId\": \"1\", \"From\": \"2017-12-26T10:58:00.00Z\", \"To\": \"2017-12-26T11:00:00.00Z\" } " http://127.0.0.1:80/createarchivetask

Response example:

{ 
	"CameraId" : "1", "From" : "2017-12-26T10:58:00.00Z", "To" : "2017-12-26T11:00:00.00Z", "ArchiveTaskId" : "084b56a5-bd49-4327-82db-9bc911f7ff96", "ErrorMessage" : null, "State" : "Created"
}

Note

In the requests, it is necessary to specify the port set up in the Web server settings — see Configuring the Web-server module.

  • No labels