Commands
Management of the commands.
Commands Settings Model
Commands Output Model
Identical to Commands Settings Model.
Read
Read the data of all tbe available commands with the following REST call:
- GET /commands
without request body.
The output is a JSON dictionary with the following mappings:
key: Command ID;
value: Commands Output Model.
Read a single command with the following REST call:
- GET /commands/{string:id}
without request body.
- Parameters
id – indentifies the command to read.
- Response Headers
Content-Type – application/json
The output is the Commands Output Model in JSON format.
Execute
To execute all the available commands at the same time it is possible to use the following REST call:
- POST /commands
without the request body.
- Response Headers
Content-Type – application/json
The output is the a JSON dictionary with the following mappings:
key: Command.ID
value: Action Model
To execute a single command use the following REST call:
- POST /commands/{string:id}
without the request body.
- Parameters
id – indentifies the command to execute.
- Response Headers
Content-Type – application/json
The output is the Action Model in JSON format.