mirror of https://git.48k.eu/ogserver
Adds the possibility to create a procedure with commands and other
procedures integrated as steps.
Note: "steps" parameter is optional and "steps" array object order
defines execution order.
Request:
POST /procedure/add
{
"center": "1",
"name": "procedure",
"description": "My procedure",
"steps": [
{
"command": "wol",
"params": { "type": "broadcast" }
},
{
"procedure": 22
},
{
"command": "poweroff",
"params": {}
}
]
}
Response:
200 OK
This commit also updates unit tests for /procedure/add POST method to
include steps.
|
||
|---|---|---|
| .. | ||
| test_0001_get_clients.py | ||
| test_0002_post_clients.py | ||
| test_0003_post_wol.py | ||
| test_0004_post_shell_run.py | ||
| test_0005_post_shell_output.py | ||
| test_0006_post_session.py | ||
| test_0007_post_poweroff.py | ||
| test_0008_post_reboot.py | ||
| test_0009_post_stop.py | ||
| test_0010_post_refresh.py | ||
| test_0011_post_hardware.py | ||
| test_0012_post_software.py | ||
| test_0013_nonexistent.py | ||
| test_0014_big_request.py | ||
| test_0015_wrong_headers.py | ||
| test_0016_post_image_create.py | ||
| test_0017_post_image_restore.py | ||
| test_0018_post_setup.py | ||
| test_0019_post_run_schedule.py | ||
| test_0020_get_client_setup.py | ||
| test_0021_get_client_info.py | ||
| test_0022_post_client_add.py | ||
| test_0023_post_client_delete.py | ||
| test_0024_get_session.py | ||
| test_0025_get_scopes.py | ||
| test_0026_post_mode.py | ||
| test_0027_get_hardware.py | ||
| test_0028_get_software.py | ||
| test_0029_get_images.py | ||
| test_0030_get_oglive_list.py | ||
| test_0031_post_room_add.py | ||
| test_0032_big_response.py | ||
| test_0033_post_procedure_add.py | ||