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


 


/mixer/test/start

Запрос

Ответ

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


/mixer/test/stop

Запрос

Ответ

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

{
}


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


/mixer/test/get_start_example

Запрос

Ответ

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

{
}


Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 107
Date: Wed, 22 Aug 2018 08:53:26 GMT

{
    "feedingStreams": [
        "stream1",
        "stream2",
        "stream3"
    ],
    "mixerCount": 3,
    "streamsInMixer": 1,
    "intervalInSeconds": 60
}



/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

...

Запрос

Ответ

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


 

/logger/enableClientLog

ЗапросОтвет
Code Block
languagejs
themeRDark
POST /rest-api/logger/enableClientLog HTTP/1.1
HOST: 192.168.1.101:9091
content-type: application/json
content-length: 71


{
    "sessionId": "/127.0.0.1:57539/192.168.1.101:8443",
    "logLevel": "DEBUG"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 03 Sep 2018 06:58:40 GMT

/logger/disableClientLog

ЗапросОтвет
Code Block
languagejs
themeRDark
POST /rest-api/logger/disableClientLog HTTP/1.1
HOST: 192.168.1.101:9091
content-type: application/json
content-length: 71


{
    "sessionId": "/127.0.0.1:57539/192.168.1.101:8443"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 03 Sep 2018 06:58:40 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