summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0002_post_clients.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-18 14:24:58 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-27 13:02:37 +0200
commit95e6520c4f3ab53ab1491eafe38c932c66b7a4b8 (patch)
tree63b82206230ce496dfa2b5eb8f9adc4624df1afe /tests/units/test_0002_post_clients.py
parent222637848bf96ba38a0153bf081649560b9153d7 (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/units/test_0002_post_clients.py')
0 files changed, 0 insertions, 0 deletions