From 23fed47639dd4dffa477b226cc9a28075511c925 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 29 May 2019 12:10:19 +0200 Subject: #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 --- tests/poweroff.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/poweroff.json (limited to 'tests/poweroff.json') diff --git a/tests/poweroff.json b/tests/poweroff.json new file mode 100644 index 0000000..4667303 --- /dev/null +++ b/tests/poweroff.json @@ -0,0 +1 @@ +{ "clients" : [ "192.168.2.1", "192.168.2.2" ] } -- cgit v1.2.3-18-g5258