From 1e6c8892565ac2c0a9578cc2dc8edf3128eb1355 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 29 May 2019 12:30:36 +0200 Subject: #915 add POST stop command to REST API in ogAdmServer Stop the menu selection on client (through POST method): curl -X POST http://127.0.0.1:8888/stop -d @stop.json Request POST /stop {"clients": [ "192.168.2.1" ] } Reply: 200 OK --- tests/run-tests.sh | 1 + tests/stop.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/stop.json (limited to 'tests') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index ae102c9..138b3b2 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -6,3 +6,4 @@ 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 curl -X POST http://127.0.0.1:8888/reboot -d @reboot.json +curl -X POST http://127.0.0.1:8888/stop -d @stop.json diff --git a/tests/stop.json b/tests/stop.json new file mode 100644 index 0000000..4667303 --- /dev/null +++ b/tests/stop.json @@ -0,0 +1 @@ +{ "clients" : [ "192.168.2.1", "192.168.2.2" ] } -- cgit v1.2.3-18-g5258