source: ogServer-Git/tests/run-tests.sh @ b35438d

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

#915 add POST refresh command to REST API in ogAdmServer

Forces client to fetch and run any pending command from the server,
reload its local configuration file and re-start its selection menu.

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

Request

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

Reply:

200 OK

  • Property mode set to 100755
File size: 597 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
4curl -X POST http://127.0.0.1:8888/shell/run -d @post_shell_run.json
5curl -X POST http://127.0.0.1:8888/shell/output -d @post_shell_output.json
6curl -X POST http://127.0.0.1:8888/session -d @session.json
7curl -X POST http://127.0.0.1:8888/poweroff -d @poweroff.json
8curl -X POST http://127.0.0.1:8888/reboot -d @reboot.json
9curl -X POST http://127.0.0.1:8888/stop -d @stop.json
10curl -X POST http://127.0.0.1:8888/refresh -d @refresh.json
Note: See TracBrowser for help on using the repository browser.