Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/stream/stopRecording HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 65
Content-Type: application/json

{
	"mediaSessionId":"b8ffd290-bcfa-11e9-9482-17706e285ec5"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 16:21:48 GMT


/stream/event/send

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/stream/event/send HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 77

{
    "streamName":"test",
    "payload":{
        "number":33,
        "string":"hello",
        "boolean":true
    }
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true


/data/send

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/data/send HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 201
Content-Type: application/json

{
	"nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	"operationId":"d1999750-fde9-11e6-9f1b-913210792936",
	"sessionId":"/192.168.1.102:15422/192.168.1.101:8443",
	"payload":{
    	"message":"hello"
	}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 16:21:18 GMT

...