Last change
on this file was
95e6520,
checked in by OpenGnSys Support Team <soporte-og@…>, 6 years ago
|
#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.
|
-
Property mode set to
100644
|
File size:
49 bytes
|
Rev | Line | |
---|
[95e6520] | 1 | { "clients" : [ "192.168.2.1", "192.168.2.2" ] } |
---|
Note: See
TracBrowser
for help on using the repository browser.