Versions Compared

Key

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

...

Request

Response

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

Request

Response

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

Request

Response

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

{
	"nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	"operationId":"d1999750-fde9-11e6-9f1b-913210792936",
	"sessionIds": [
        "/192.168.1.102:15422/192.168.1.101:8443",
        "/192.168.1.103:53002/192.168.1.101:8443"
    ],
	"payload":{
    	"message":"hello"
	}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Content-Length: 0
Date: Mon, 10 Apr 2023 16:21:18 GMT

/data/batch_send

Request

Response

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

[
    {
	     "nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	     "operationId":"d1999750-hello",
	     "sessionId":"/192.168.1.102:15422/192.168.1.101:8443",
	     "payload":{
    	     "message":"hello"
	     }
    },
    {
	     "nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	     "operationId":"d1999750-kick",
	     "sessionId":"/192.168.1.103:53002/192.168.1.101:8443",
	     "payload":{
    	     "message":"bye"
	     }
    }
]
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Content-Length: 0
Date: Mon, 10 Apr 2023 16:21:18 GMT

/connection/find_all

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/connection/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 16:42:07 GMT

[
	{
		"custom":{},
		"nodeId":null,
		"appKey":"roomApp",
		"sessionId":"/192.168.1.102:31049/192.168.1.101:8080",
		"sipRegisterRequired":false,
		"sipLogin":"a5ledkh95o57os4ge5i4ihpqio",
		"sipAuthenticationName":null,
		"sipPassword":null,
		"sipVisibleName":null,
		"sipDomain":null,
		"sipOutboundProxy":null,
		"sipPort":0,
		"sipContactParams":null,
		"width":0,
		"height":0,
		"supportedResolutions":"0x0",
		"useProxy":true,
		"useDTLS":true,
		"useWsTunnel":false,
		"useWsTunnelPacketization2":false,
		"useBase64BinaryEncoding":false,
		"mediaProviders":["WebRTC"],
		"appMainClass":null,
		"appCallbackClass":null,
		"authToken":"/192.168.1.102:31049/192.168.1.101:8080",
		"status":null,
		"restClientConfig":null,
		"clientVersion":"2.3.0",
		"clientOSVersion":null,
		"clientBrowserVersion":null
	},{
		"custom":{},
		"nodeId":null,
		"appKey":"defaultApp",
		"sessionId":"/192.168.1.102:15422/192.168.1.101:8443",
		"sipRegisterRequired":false,
		"sipLogin":"sasr7al31j6d1vuuiv9v9vm7ig",
		"sipAuthenticationName":null,
		"sipPassword":null,
		"sipVisibleName":null,
		"sipDomain":null,
		"sipOutboundProxy":null,
		"sipPort":0,
		"sipContactParams":null,
		"width":0,
		"height":0,
		"supportedResolutions":"0x0",
		"useProxy":true,
		"useDTLS":true,
		"useWsTunnel":false,
		"useWsTunnelPacketization2":false,
		"useBase64BinaryEncoding":false,
		"mediaProviders":["WebRTC","WSPlayer"],
		"appMainClass":null,
		"appCallbackClass":null,
		"authToken":"/192.168.1.102:15422/192.168.1.101:8443",
		"status":null,
		"restClientConfig":null,
		"clientVersion":"0.5.18",
		"clientOSVersion":"5.0 (Windows NT 6.3; Win64; x64) ...",
		"clientBrowserVersion":"... Chrome/57.0.2987.110 ..."
	}
]

...

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/set_stream_watermark HTTP/1.1
Host: localhost:8081
Accept: */*
Content-Type: application/json
Content-Length: 124

{
 "uri":"mixer://m1",
 "watermark":"/opt/media/logo.png",
 "mediaSessionId":"f2019570-1f9d-11ed-b6ef-050068a3a458",
 "x":10,
 "y":10
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: Fri, 19 Aug 2022 14:55:35 GMT


 

/mixer/set_parameter

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/set_parameter HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 55

{
 "uri":"mixer://m1",
 "mixerLayoutDir":"/opt/GridLayout"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: Mon, 14 Nov 2022 14:55:35 GMT


 

/mixer/test/start

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/test/start HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 107

{
	"feedingStreams": [
		"s1",
		"s2"
    ],
    "mixerCount": 3,
    "streamsInMixer": 1,
    "intervalInSeconds": 60
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 22 Aug 2018 08:53:26 GMT

...