summaryrefslogtreecommitdiffstats
path: root/tests/post_shell_output.json
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-24 10:48:46 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-27 13:03:00 +0200
commitc6020f2ad186954d6c083d000f282f58b44017f1 (patch)
tree41ba3359b635d4a6c2ede5270eda5720cf58c0ac /tests/post_shell_output.json
parent7e4e5b5e0884483e8c7d4b0adb8f10a93157ceaf (diff)
#915 add POST shell/output command to REST API in ogAdmServer
Fetching result from run command on client (through GET method): curl -X POST http://127.0.0.1:8888/shell/output -d @post_shell_output.json Request POST /shell/output {"clients": [ "192.168.2.1" ] } Reply: 200 OK {"clients": [ { "addr" : "192.168.2.1", "output" : "..." } ] }
Diffstat (limited to 'tests/post_shell_output.json')
-rw-r--r--tests/post_shell_output.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/post_shell_output.json b/tests/post_shell_output.json
new file mode 100644
index 0000000..1badfed
--- /dev/null
+++ b/tests/post_shell_output.json
@@ -0,0 +1 @@
+{ "clients" : [ "192.168.2.1", "192.168.2.2" ]}