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. |
||
---|---|---|
.. | ||
config | ||
units | ||
clients.json | ||
create_basic_image.json | ||
create_image.json | ||
create_schedule.json | ||
post_clients.json | ||
post_shell_output.json | ||
post_shell_run.json | ||
poweroff.json | ||
reboot.json | ||
restore_image.json | ||
run-tests.py | ||
run-tests.sh | ||
run_schedule.json | ||
session.json | ||
setup_image.json | ||
stop.json | ||
task.json | ||
wol.json |