REST interface - rsandila/traffic3 GitHub Wiki
The REST interface allows HTTP requests to be made to control the traffic3 server.
/server
GET
Lists the status of the listening sockets in server mode
TODO arguments TODO example
DELETE
Stops the server from listening on a specific socket
TODO arguments TODO example
PUT
Creates a new listening socket
TODO arguments TODO example
/client
GET
Lists the client connections made by the server
TODO arguments TODO example
DELETE
Stops the server from connecting to on a specific listening socket
TODO arguments TODO example
PUT
Creates a new client connection to a listening socket
TODO arguments TODO example
/status
GET
GET /status
Returns basic status for the server.
TODO example
GET /status/supports/protocol
Returns the list of supported protocols
TODO example
GET /status/supports/contentmanager
Returns the list of supported contentmanagers
TODO example
/
GET /.*
Allows static content to be downloaded from a folder specified when the server was started