diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-21 16:56:49 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-27 13:02:52 +0200 |
commit | 5797e0b199caa44b992929a0f421f6e1a455fffe (patch) | |
tree | bcfe326e70924d81c1dbb4a841a2c90be3e52cf8 /tests/run-tests.sh | |
parent | 507c75c33793ff328214c2c3e884f7860f1a16df (diff) |
#915 add wol command to REST API in ogAdmServer
Send Wake-On-Lan to clients (through POST method):
Request:
curl -X POST http://127.0.0.1:8888/wol
{ "type" : "unicast", "clients" : [ { "addr" : "192.168.2.1", "mac" : "00AABBCCDD01" } ] }
Reply:
200 OK
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 a543ef0..40c339d 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -1,2 +1,3 @@ curl -X POST http://127.0.0.1:8888/clients -d @post_clients.json curl -X GET http://127.0.0.1:8888/clients +curl -X POST http://127.0.0.1:8888/wol -d @wol.json |