From 17f55b41c3117c8ce90a7a4817052266d7f4de4c Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 29 May 2019 12:35:15 +0200 Subject: #915 add POST refresh command to REST API in ogAdmServer Forces client to fetch and run any pending command from the server, reload its local configuration file and re-start its selection menu. curl -X POST http://127.0.0.1:8888/refresh -d @refresh.json Request POST /refresh {"clients": [ "192.168.2.1" ] } Reply: 200 OK --- tests/run-tests.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 138b3b2..f0cae2a 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -7,3 +7,4 @@ 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 +curl -X POST http://127.0.0.1:8888/refresh -d @refresh.json -- cgit v1.2.3-18-g5258