From 6b30dbc65c817e7777c10144d3fd1e8af75ef556 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 21 Jun 2019 13:22:12 +0200 Subject: #915 add POST hardware command to REST API in ogAdmServer This patch implements the command "hardware" that fetches the hardware configuration from the clients. Request: POST /hardware {"clients" : [ "192.168.2.1", "192.168.2.2" ]} Reply: 200 OK This allows to refresh the hardware inventory from clients. --- 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 ca00b5f..dfa4843 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -10,3 +10,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/poweroff -d @pow curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/reboot -d @reboot.json curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/stop -d @stop.json curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/refresh -d @refresh.json +curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/hardware -d @post_clients.json -- cgit v1.2.3-18-g5258