From 7b6fcdbc624784cb37572030895ecc48389787a0 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 21 May 2019 12:47:23 +0200 Subject: #915 add clients command to REST API in ogAdmServer Request for existing clients: curl -X GET http://127.0.0.1:8888/clients Request: GET /clients Reply: 200 OK {"clients": [ { "addr" : "192.168.2.1", "state" : "OPG" }, { "addr" : "192.168.2.2", "state" : "OFF" }]} --- 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 e187abb..a543ef0 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -1 +1,2 @@ curl -X POST http://127.0.0.1:8888/clients -d @post_clients.json +curl -X GET http://127.0.0.1:8888/clients -- cgit v1.2.3-18-g5258