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/clients.json | 1 + tests/run-tests.sh | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/clients.json (limited to 'tests') diff --git a/tests/clients.json b/tests/clients.json new file mode 100644 index 0000000..01672ed --- /dev/null +++ b/tests/clients.json @@ -0,0 +1 @@ +curl -X GET http://127.0.0.1:8888/clients 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