From 5f0191d73ff5136a1a63b076f12a30a01e06f9dd Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 29 May 2019 12:12:46 +0200 Subject: #915 add POST reboot command to REST API in ogAdmServer Reboot a client (through POST method): curl -X POST http://127.0.0.1:8888/reboot -d @reboot.json Request POST /reboot {"clients": [ "192.168.2.1" ] } Reply: 200 OK --- tests/run-tests.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/run-tests.sh') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 8736859..ae102c9 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -5,3 +5,4 @@ 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 +curl -X POST http://127.0.0.1:8888/reboot -d @reboot.json -- cgit v1.2.3-18-g5258