source: ogServer-Git/tests/run-tests.sh @ 696c5bb

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

#915 Rename POST /image/setup for /setup in REST API

This patch renames the setup command to avoid semantic confusion.

  • Property mode set to 100755
File size: 1.9 KB
RevLine 
[fd30540]1API_KEY="07b3bfe728954619b58f0107ad73acc1"
2
3curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/clients -d @post_clients.json
4curl -X GET -H "Authorization: $API_KEY" http://127.0.0.1:8888/clients
5curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/wol -d @wol.json
6curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/shell/run -d @post_shell_run.json
7curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/shell/output -d @post_shell_output.json
8curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/session -d @session.json
9curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/poweroff -d @poweroff.json
10curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/reboot -d @reboot.json
11curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/stop -d @stop.json
12curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/refresh -d @refresh.json
[6b30dbc]13curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/hardware -d @post_clients.json
[b4a9fdd]14curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/software -d @post_clients.json
[1a8ada1]15curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create -d @create_image.json
[1dde02e]16curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore -d @restore_image.json
[6c91d14]17curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/setup -d @setup_image.json
[7406188]18curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/basic -d @create_basic_image.json
[45f414e]19curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/incremental -d @create_incremental_image.json
[17eeac1]20curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/basic -d @restore_basic_image.json
[90672e4]21curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/incremental -d @restore_incremental_image.json
[2f7e9da]22curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/run/schedule -d @run_schedule.json
Note: See TracBrowser for help on using the repository browser.