source: ogServer-Git/tests/run-tests.sh @ 5797e0b

Last change on this file since 5797e0b was 5797e0b, checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago

#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

  • Property mode set to 100755
File size: 159 bytes
Line 
1curl -X POST http://127.0.0.1:8888/clients -d @post_clients.json
2curl -X GET http://127.0.0.1:8888/clients
3curl -X POST http://127.0.0.1:8888/wol -d @wol.json
Note: See TracBrowser for help on using the repository browser.