diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-18 14:24:58 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-05-27 13:02:37 +0200 |
commit | 95e6520c4f3ab53ab1491eafe38c932c66b7a4b8 (patch) | |
tree | 63b82206230ce496dfa2b5eb8f9adc4624df1afe /tests/run-tests.sh | |
parent | 222637848bf96ba38a0153bf081649560b9153d7 (diff) |
#915 add initial REST API for ogAdmServer
Add REST API for ogAdmServer, this API is exposed through port 8888 on
the system that runs the ogAdmServer. The body of the HTTP message is
expressed in JSON format.
This patch implements the command "clients" that maps to the existing
legacy "Sondeo" command, that is used by the web interface to poll
refresh the client state.
This patch also includes an initial test infrastructure using 'curl' to
send commands to the new REST API.
Request:
POST /clients
{"clients" : [ "192.168.2.1", "192.168.2.2" ]}
Reply:
200 OK
This allows to refresh the status of the list of clients.
Diffstat (limited to 'tests/run-tests.sh')
-rwxr-xr-x | tests/run-tests.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh new file mode 100755 index 0000000..e187abb --- /dev/null +++ b/tests/run-tests.sh @@ -0,0 +1 @@ +curl -X POST http://127.0.0.1:8888/clients -d @post_clients.json |