In the Emulator ACFA integration module, you can work with Swagger software directly via POST requests. To do this, do the following:
- Activate Swagger software and Swagger UI (see Configuring the object of the Emulator ACFA integration module).
- Connect to Swagger software in a web browser using the string:The following page will be available after the connection:
http://{ip}:{port}/swagger
- You can authorize by the token which was displayed in the settings of an object of the Emulator ACFA integration module (see Configuring the object of the Emulator ACFA integration module), by clicking the Authorize button in the upper right corner of the page.
- After successful authorization, you can execute the following commands:
To execute the commands, do the following:- Select the corresponding request.
- Click the Try it Out button.
- Click the Execute button.
Examples of commands:
- Read the hardware tree with the current states. The GET/virtual/tree request.
- Switch the sensor with the specified address to the arm state.
- Switch the sensor with the specified address to the disarm state.
- Switch the sensor with the specified address from the arm state to the alarm state.
- Handle the alarm and switch the sensor to the disarm state.
- And so on, similarly to the described commands.
Overview
Content Tools