Commands
note
This resource allows user to request a special behaviour to SENSR. Detailed behaviour of each commands are described below.
GET
/internal/commands/custom
- Request to do a special action.(N.A.) 
- Parameters- cmd-id : A command ID (currently only local-ip-listandstate)- local-ip-list: Get list of local IP addresses. This is used by the Web FE to show the list when selecting a master IP for the algo nodes.
- state: Get which state SENSR is currently in (- Ready,- Project Setup,- Runtime, etc).
 
 
- cmd-id : A command ID (currently only 
- Return code- 200 OK
- 400 BAD REQ
 
- Example 
$ curl -X GET 'http://localhost:9080/internal/commands/custom?cmd-id=local-ip-list'
** Respond **
[
    "127.0.0.1",
    "192.168.0.7",
    "172.17.0.1",
    "172.16.0.1"
]
$ curl -X GET 'http://localhost:9080/internal/commands/custom?cmd-id=state'
** Respond **
Project Setup