Versions Compared

Key

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

In the Emulator  integration ACFA integration module, you can work with the Swagger software directly via POST requests. To do this, do the following:

  1. Activate
  2. the
  3. Swagger software and Swagger UI (see Configuring the object of the Emulator ACFA integration module).
  4. Connect to
  5. the
  6. Swagger software in a web browser using the string:
    Code Block
    http://{ip}:{port}/swagger
    The following page will be available after the connection:
    Image Modified
  7. You can authorize by the token which was displayed in the settings of an object of the Emulator
  8.  module
  9. ACFA integration module (
  10. see
  11. see Configuring the object of the Emulator ACFA integration module), by clicking
  12. the 
  13. the Authorize Image Modified button in the upper right corner of the page.
  14. After successful authorization, you can execute the following commands:
    Image Modified
    To execute the commands, do the following:
    1. Select the corresponding request.
    2. Click the Try it Out button.
    3. Click the Execute button. 

Examples of commands:

  • Read the hardware tree with the current states. The GET/virtual/tree Image Modified request.
  • Switch the sensor with the specified address to
  • the 
  • the arm
  •  state
  •  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.
  • Process
  • Handle the alarm and switch the sensor to the disarm state.
  • And so on, similarly to the described commands.