source: ogServer-Git/tests/run-tests.sh @ 1e6c889

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

#915 add POST stop command to REST API in ogAdmServer

Stop the menu selection on client (through POST method):

curl -X POST http://127.0.0.1:8888/stop -d @stop.json

Request

POST /stop
{"clients": [ "192.168.2.1" ] }

Reply:

200 OK

  • Property mode set to 100755
File size: 537 bytes
RevLine 
[95e6520]1curl -X POST http://127.0.0.1:8888/clients -d @post_clients.json
[7b6fcdb]2curl -X GET http://127.0.0.1:8888/clients
[5797e0b]3curl -X POST http://127.0.0.1:8888/wol -d @wol.json
[7e4e5b5]4curl -X POST http://127.0.0.1:8888/shell/run -d @post_shell_run.json
[c6020f2]5curl -X POST http://127.0.0.1:8888/shell/output -d @post_shell_output.json
[7ab5f0c]6curl -X POST http://127.0.0.1:8888/session -d @session.json
[23fed47]7curl -X POST http://127.0.0.1:8888/poweroff -d @poweroff.json
[5f0191d]8curl -X POST http://127.0.0.1:8888/reboot -d @reboot.json
[1e6c889]9curl -X POST http://127.0.0.1:8888/stop -d @stop.json
Note: See TracBrowser for help on using the repository browser.