Versions Compared

Key

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

...

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/terminate HTTP/1.1
HOST: 192.168.1.101:9091
content-type: application/json
content-length: 31

{
  "uri": "mixer://mixer1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT


 

/pull/pull

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/pull/pull HTTP/1.1
Host: 192.168.1.101:9091
Content-Type: application/json;charset=UTF-8
Content-Length: 60

{
"uri":"wss://demo.flashphoner.com:8443"
"localStreamName": "6602"
"remoteStreamName": "6602"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT

/pull/find_all

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/pull/find_all HTTP/1.1
Host: 192.168.1.101:9091
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: Fri, 24 Nov 2017 14:27:35 GMT

[{
"localMediaSessionId":"da157e2b-2159-40c9-9560-ae1af8d4a0b5",
"remoteMediaSessionId":null,
"localStreamName":"6602",
"remoteStreamName":"660s",
"uri":"wss://demo.flashphoner.com:8443/websocket",
"status":"NEW"
}]

/pull/push

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/pull/pull HTTP/1.1
Host: 192.168.1.101:9091
Content-Type: application/json;charset=UTF-8
Content-Length: 60

{
"uri":"wss://demo.flashphoner.com:8443"
"localStreamName": "0d40"
"remoteStreamName": "0d40"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT

/pull/terminate

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/pull/terminate HTTP/1.1
HOST: 192.168.1.101:9091
content-type: application/json
content-length: 31

{
  "uri": "wss://demo.flashphoner.com:8443"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT


 

/api/create-session

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/api/create-session HTTP/1.1
HOST: 192.168.1.101:9091
content-type: application/json
content-length: 306


{
   "urlServer": "ws://localhost:8080",
   "sipLogin":"10006",
   "sipAuthenticationName":"10006",
   "sipPassword":"password",
   "sipDomain":"domain",
   "sipOutboundProxy":"domain",
   "sipPort":"5060",
   "appKey":"defaultApp",
   "sipRegisterRequired":"true",
   "clientBrowserVersion": "",
   "clientVersion": "",
   "mediaProviders": ["WebRTC"]
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 25 Jul 2018 06:58:40 GMT