POST /EchoApp/connect HTTP/1.1
Accept: application/json, application/*+json
Content-Type: application/json;charset=UTF-8
Host: localhost:8081
Connection: keep-alive
Content-Length: 537
{
"nodeId":"Hw47CFMBEchVOpBMDr29IxjudnJ1sjOY@192.168.1.101",
"appKey":"defaultApp",
"sessionId":"/192.168.1.103:15422/192.168.1.101:8443",
...
}
POST /rest/my_api/OnDataEvent HTTP/1.1
Accept: application/json, application/*+json
Content-Type: application/json;charset=UTF-8
Host: 192.168.1.101
Connection: keep-alive
Content-Length: 218
{
"nodeId":"Hw47CFMBEchVOpBMDr29IxjudnJ1sjOY@192.168.1.101",
"appKey":"defaultApp",
"sessionId":"/192.168.1.102:55839/192.168.1.101:8443",
"operationId":"d1999750-fde9-11e6-9f1b-913210792931",
"payload":{
"message":"hello"
}
}
POST /rest-api/data/send HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 201
Content-Type: application/json
{
"nodeId":"Hw47CFMBEchVOpBMDr29IxjudnJ1sjOY@192.168.1.101",
"operationId":"d1999750-fde9-11e6-9f1b-913210792931",
"sessionId":"/192.168.1.103:15422/192.168.1.101:8443",
"payload":{
"message":"hello"
}
}