diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-29 12:10:19 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-30 15:32:01 +0200 |
commit | 23fed47639dd4dffa477b226cc9a28075511c925 (patch) | |
tree | c92b66d83d71d51cb0f6a6e3c31d6a8305625ffd /tests/run-tests.sh | |
parent | 40023ff0b61074cb65ff364945f5dc62e55b3ccd (diff) |
#915 add POST poweroff command to REST API in ogAdmServer
Power off a client (through POST method):
curl -X POST http://127.0.0.1:8888/poweroff -d @poweroff.json
Request
POST /poweroff
{"clients": [ "192.168.2.1" ] }
Reply:
200 OK
Diffstat (limited to 'tests/run-tests.sh')
-rwxr-xr-x | tests/run-tests.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 27c7bc6..8736859 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -4,3 +4,4 @@ curl -X POST http://127.0.0.1:8888/wol -d @wol.json curl -X POST http://127.0.0.1:8888/shell/run -d @post_shell_run.json curl -X POST http://127.0.0.1:8888/shell/output -d @post_shell_output.json curl -X POST http://127.0.0.1:8888/session -d @session.json +curl -X POST http://127.0.0.1:8888/poweroff -d @poweroff.json |