summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-21 12:47:23 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-27 13:02:45 +0200
commit7b6fcdbc624784cb37572030895ecc48389787a0 (patch)
tree0ab11527e3ad0c5b7a4dbba3e5d919a82162c39e /tests
parent95e6520c4f3ab53ab1491eafe38c932c66b7a4b8 (diff)
#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" }]}
Diffstat (limited to 'tests')
-rw-r--r--tests/clients.json1
-rwxr-xr-xtests/run-tests.sh1
2 files changed, 2 insertions, 0 deletions
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