diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-21 12:47:23 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-27 13:02:45 +0200 |
commit | 7b6fcdbc624784cb37572030895ecc48389787a0 (patch) | |
tree | 0ab11527e3ad0c5b7a4dbba3e5d919a82162c39e /tests/run-tests.sh | |
parent | 95e6520c4f3ab53ab1491eafe38c932c66b7a4b8 (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/run-tests.sh')
-rwxr-xr-x | tests/run-tests.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |