source: ogServer-Git/tests/post_shell_output.json

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

#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" : "..." } ] }

  • Property mode set to 100644
File size: 48 bytes
Line 
1{ "clients" : [ "192.168.2.1", "192.168.2.2" ]}
Note: See TracBrowser for help on using the repository browser.