From 7e4e5b5e0884483e8c7d4b0adb8f10a93157ceaf Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 23 May 2019 17:49:18 +0200 Subject: #915 add run command to REST API in ogAdmServer Run command on client (through POST method): curl -X POST http://127.0.0.1:8888/shell/run -d @post_run.json Request POST /shell/run {"clients": [ "192.168.2.1", "192.168.2.2" ], "run" : "ls" } 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 40c339d..f9f49ba 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -1,3 +1,4 @@ curl -X POST http://127.0.0.1:8888/clients -d @post_clients.json curl -X GET http://127.0.0.1:8888/clients 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 -- cgit v1.2.3-18-g5258