Welcome to the service manager application: - To get a list of available and running services send a "GET /services" request e.g. GET http://localhost:8889/services - To create and start a new service send a "POST /services" request with a json payload specifing service name and optional arguments, e.g. e.g. POST http://localhost:8889/services POST /services { "name: "tcp-echo" } this will return a JSON payload with information relevant to the created service, e.g. { "id": "6fa8429429749bca77adda1037dacbfa", "name": "tcp-echo", "description": "A TCP echo server which echoes back whatever it receives", "command": "python -u ../sockets/srv_tcp_echo.py", "ports": [9001], "args": "", "created": "2017-03-13 12:06:00", "lifetime": 3600, "pid": 21585, "running": 1, "output": "echo echo echo", "return-code": null } - To query the status of a service with given id send a "GET /service/id[?info=type]" request; the optional type for the info query parameter can be either "full", for having full information, "short", for having information with the output of the service or "running", for having only the running status, the default if the query parameter is omitted is "full"; the API will return a JSON payload with information about the created service; if "full" info is requested e.g. GET http://localhost:8889/service/AB1231CD321FE the otuput will contain the following fields: { "id": "6fa8429429749bca77adda1037dacbfa", "name": "tcp-echo", "description": "A TCP echo server which echoes back whatever it receives", "command": "python -u ../sockets/srv_tcp_echo.py", "ports": [9001], "args": "", "created": "2017-03-13 12:06:00", "lifetime": 3600, "pid": 21585, "running": 1, "output": "echo echo echo", "return-code": null } if "short" info is requested the output will contain only the following fields: { "id": "6fa8429429749bca77adda1037dacbfa", "name": "tcp-echo", "description": "A TCP echo server which echoes back whatever it receives", "command": "python -u ../sockets/srv_tcp_echo.py", "ports": [9001], "args": "", "created": "2017-03-13 12:06:00", "lifetime": 3600, "pid": 21585, "running": 1, "return-code": null } if "running" info is requested the output will contain only the following fields: { "id": "6fa8429429749bca77adda1037dacbfa", "pid": 21585, "running": 1, "return-code": null } - To stop and delete a service with given id send a "DELETE /service/id" request