2016-09-05 00:54:11 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
|
|
|
|
*
|
|
|
|
* @author Lukas Reschke <lukas@statuscode.ch>
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
return [
|
|
|
|
'routes' => [
|
|
|
|
[
|
2017-07-06 16:37:26 +03:00
|
|
|
'name' => 'Page#index',
|
2016-09-05 00:54:11 +03:00
|
|
|
'url' => '/',
|
|
|
|
'verb' => 'GET',
|
|
|
|
],
|
2020-03-06 13:19:06 +03:00
|
|
|
[
|
|
|
|
'name' => 'Page#notFound',
|
|
|
|
'url' => '/not-found',
|
|
|
|
'verb' => 'GET',
|
|
|
|
],
|
2020-06-16 12:33:03 +03:00
|
|
|
[
|
|
|
|
'name' => 'Page#duplicateSession',
|
|
|
|
'url' => '/duplicate-session',
|
|
|
|
'verb' => 'GET',
|
|
|
|
],
|
2020-03-23 18:45:57 +03:00
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Page#showCall',
|
|
|
|
'url' => '/call/{token}',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'root' => '',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Page#authenticatePassword',
|
|
|
|
'url' => '/call/{token}',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'root' => '',
|
|
|
|
],
|
|
|
|
|
2017-07-18 15:57:19 +03:00
|
|
|
],
|
|
|
|
'ocs' => [
|
2018-03-26 19:24:39 +03:00
|
|
|
/**
|
|
|
|
* Signaling
|
|
|
|
*/
|
2016-09-05 00:54:11 +03:00
|
|
|
[
|
2018-04-03 18:00:53 +03:00
|
|
|
'name' => 'Signaling#getSettings',
|
|
|
|
'url' => '/api/{apiVersion}/signaling/settings',
|
|
|
|
'verb' => 'GET',
|
2017-07-18 15:57:19 +03:00
|
|
|
'requirements' => [
|
2021-05-18 20:04:39 +03:00
|
|
|
'apiVersion' => 'v(3)',
|
2017-07-18 15:57:19 +03:00
|
|
|
],
|
2016-09-05 00:54:11 +03:00
|
|
|
],
|
2020-04-06 18:16:12 +03:00
|
|
|
[
|
|
|
|
'name' => 'Signaling#getWelcomeMessage',
|
|
|
|
'url' => '/api/{apiVersion}/signaling/welcome/{serverId}',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
2021-05-18 20:04:39 +03:00
|
|
|
'apiVersion' => 'v(3)',
|
2020-04-06 18:16:12 +03:00
|
|
|
'serverId' => '^\d+$',
|
|
|
|
],
|
|
|
|
],
|
2016-09-05 00:54:11 +03:00
|
|
|
[
|
2018-04-03 18:00:53 +03:00
|
|
|
'name' => 'Signaling#backend',
|
|
|
|
'url' => '/api/{apiVersion}/signaling/backend',
|
|
|
|
'verb' => 'POST',
|
2017-07-18 15:57:19 +03:00
|
|
|
'requirements' => [
|
2021-05-18 20:04:39 +03:00
|
|
|
'apiVersion' => 'v(3)',
|
2017-07-18 15:57:19 +03:00
|
|
|
],
|
2016-09-05 00:54:11 +03:00
|
|
|
],
|
2017-11-28 19:50:38 +03:00
|
|
|
[
|
2018-04-03 18:00:53 +03:00
|
|
|
'name' => 'Signaling#signaling',
|
2018-04-09 23:10:34 +03:00
|
|
|
'url' => '/api/{apiVersion}/signaling/{token}',
|
2018-04-03 18:00:53 +03:00
|
|
|
'verb' => 'POST',
|
2017-11-28 19:50:38 +03:00
|
|
|
'requirements' => [
|
2021-05-18 20:04:39 +03:00
|
|
|
'apiVersion' => 'v(3)',
|
2018-04-03 18:00:53 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
2017-11-28 19:50:38 +03:00
|
|
|
],
|
|
|
|
],
|
2017-07-20 14:40:49 +03:00
|
|
|
[
|
2018-04-03 18:00:53 +03:00
|
|
|
'name' => 'Signaling#pullMessages',
|
2018-04-09 23:10:34 +03:00
|
|
|
'url' => '/api/{apiVersion}/signaling/{token}',
|
2018-04-03 18:00:53 +03:00
|
|
|
'verb' => 'GET',
|
2017-07-20 14:40:49 +03:00
|
|
|
'requirements' => [
|
2021-05-18 20:04:39 +03:00
|
|
|
'apiVersion' => 'v(3)',
|
2018-04-03 18:00:53 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
2017-07-20 14:40:49 +03:00
|
|
|
],
|
|
|
|
],
|
2018-03-26 19:24:39 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Call
|
|
|
|
*/
|
2016-12-21 20:03:49 +03:00
|
|
|
[
|
2017-07-11 09:36:59 +03:00
|
|
|
'name' => 'Call#getPeersForCall',
|
2017-07-11 15:41:19 +03:00
|
|
|
'url' => '/api/{apiVersion}/call/{token}',
|
2016-09-05 00:54:11 +03:00
|
|
|
'verb' => 'GET',
|
2017-06-12 18:03:56 +03:00
|
|
|
'requirements' => [
|
2021-03-04 15:40:41 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-06-12 18:03:56 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
2016-09-05 00:54:11 +03:00
|
|
|
],
|
2016-11-17 01:39:00 +03:00
|
|
|
[
|
2017-07-06 16:46:17 +03:00
|
|
|
'name' => 'Call#joinCall',
|
2017-07-11 15:41:19 +03:00
|
|
|
'url' => '/api/{apiVersion}/call/{token}',
|
2016-11-17 01:39:00 +03:00
|
|
|
'verb' => 'POST',
|
2017-06-12 18:03:56 +03:00
|
|
|
'requirements' => [
|
2021-03-04 15:40:41 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-06-12 18:03:56 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
2016-10-10 14:52:06 +03:00
|
|
|
],
|
2021-06-02 23:08:49 +03:00
|
|
|
[
|
|
|
|
'name' => 'Call#updateCallFlags',
|
|
|
|
'url' => '/api/{apiVersion}/call/{token}',
|
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v(4)',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2016-12-06 20:01:51 +03:00
|
|
|
[
|
2017-07-06 16:46:17 +03:00
|
|
|
'name' => 'Call#leaveCall',
|
2017-07-12 11:59:20 +03:00
|
|
|
'url' => '/api/{apiVersion}/call/{token}',
|
2016-12-06 20:01:51 +03:00
|
|
|
'verb' => 'DELETE',
|
2017-07-12 11:59:20 +03:00
|
|
|
'requirements' => [
|
2021-03-04 15:40:41 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-12 11:59:20 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
2017-10-03 09:56:12 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2018-03-26 19:24:39 +03:00
|
|
|
/**
|
|
|
|
* Chat
|
|
|
|
*/
|
2017-10-03 09:56:12 +03:00
|
|
|
[
|
|
|
|
'name' => 'Chat#receiveMessages',
|
|
|
|
'url' => '/api/{apiVersion}/chat/{token}',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Chat#sendMessage',
|
|
|
|
'url' => '/api/{apiVersion}/chat/{token}',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
2017-07-12 11:59:20 +03:00
|
|
|
],
|
2016-11-14 13:45:27 +03:00
|
|
|
],
|
2021-06-28 15:37:31 +03:00
|
|
|
[
|
|
|
|
'name' => 'Chat#clearHistory',
|
|
|
|
'url' => '/api/{apiVersion}/chat/{token}',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2021-01-14 19:14:23 +03:00
|
|
|
[
|
|
|
|
'name' => 'Chat#deleteMessage',
|
|
|
|
'url' => '/api/{apiVersion}/chat/{token}/{messageId}',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
'messageId' => '^[0-9]+$',
|
|
|
|
],
|
|
|
|
],
|
2018-08-31 11:37:22 +03:00
|
|
|
[
|
|
|
|
'name' => 'Chat#setReadMarker',
|
|
|
|
'url' => '/api/{apiVersion}/chat/{token}/read',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2018-04-25 14:01:29 +03:00
|
|
|
[
|
2018-04-26 11:14:00 +03:00
|
|
|
'name' => 'Chat#mentions',
|
|
|
|
'url' => '/api/{apiVersion}/chat/{token}/mentions',
|
2018-04-25 14:01:29 +03:00
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2021-01-27 16:46:34 +03:00
|
|
|
[
|
|
|
|
'name' => 'Chat#shareObjectToChat',
|
|
|
|
'url' => '/api/{apiVersion}/chat/{token}/share',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-07-06 16:37:26 +03:00
|
|
|
|
2018-03-26 19:24:39 +03:00
|
|
|
/**
|
2019-10-09 12:48:35 +03:00
|
|
|
* Conversation (Room)
|
2018-03-26 19:24:39 +03:00
|
|
|
*/
|
2017-07-10 17:21:55 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#getRooms',
|
|
|
|
'url' => '/api/{apiVersion}/room',
|
|
|
|
'verb' => 'GET',
|
2020-04-06 13:57:33 +03:00
|
|
|
'requirements' => [
|
2021-03-03 15:41:37 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-04-06 13:57:33 +03:00
|
|
|
],
|
2017-07-10 17:21:55 +03:00
|
|
|
],
|
2020-12-02 14:22:01 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#getListedRooms',
|
|
|
|
'url' => '/api/{apiVersion}/listed-room',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
2021-03-03 14:08:56 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-12-02 14:22:01 +03:00
|
|
|
],
|
|
|
|
],
|
2017-07-12 12:28:26 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#createRoom',
|
|
|
|
'url' => '/api/{apiVersion}/room',
|
|
|
|
'verb' => 'POST',
|
2020-04-06 13:57:33 +03:00
|
|
|
'requirements' => [
|
2021-03-03 15:19:37 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-04-06 13:57:33 +03:00
|
|
|
],
|
2017-07-12 12:28:26 +03:00
|
|
|
],
|
2017-07-10 17:21:55 +03:00
|
|
|
[
|
2019-03-19 18:00:21 +03:00
|
|
|
'name' => 'Room#getSingleRoom',
|
2017-07-10 17:21:55 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
2021-03-04 15:13:07 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-10 17:21:55 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-07-06 16:37:26 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#renameRoom',
|
2017-07-12 12:28:26 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}',
|
2017-07-06 16:37:26 +03:00
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2021-03-04 15:23:17 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-12 12:28:26 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
2017-07-06 16:37:26 +03:00
|
|
|
],
|
|
|
|
],
|
2017-07-12 18:08:55 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#deleteRoom',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
2021-03-04 15:13:07 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-12 18:08:55 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-07-06 16:37:26 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#makePublic',
|
2017-07-12 12:28:26 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}/public',
|
2017-07-06 16:37:26 +03:00
|
|
|
'verb' => 'POST',
|
2017-07-12 12:28:26 +03:00
|
|
|
'requirements' => [
|
2021-03-04 15:23:17 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-12 12:28:26 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
2017-07-06 16:37:26 +03:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Room#makePrivate',
|
2017-07-12 12:28:26 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}/public',
|
2017-07-06 16:37:26 +03:00
|
|
|
'verb' => 'DELETE',
|
2017-07-12 12:28:26 +03:00
|
|
|
'requirements' => [
|
2021-03-04 15:23:17 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2019-03-19 18:31:02 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-11-11 11:19:59 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#setDescription',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/description',
|
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2021-03-04 15:23:17 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-11-11 11:19:59 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2019-03-19 18:31:02 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#setReadOnly',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/read-only',
|
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2021-03-04 15:23:17 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-12 12:28:26 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
2017-07-06 16:37:26 +03:00
|
|
|
],
|
2020-12-01 13:56:54 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#setListable',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/listable',
|
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2021-03-03 14:08:56 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-12-01 13:56:54 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-09-20 10:37:30 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#setPassword',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/password',
|
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2021-03-04 15:23:17 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-09-20 10:37:30 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-08-23 16:36:01 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#getParticipants',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/participants',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
2021-03-04 14:06:36 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-08-23 16:36:01 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-07-06 16:37:26 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#addParticipantToRoom',
|
2017-07-12 12:28:26 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}/participants',
|
2017-07-06 16:37:26 +03:00
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
2021-03-04 15:34:06 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-12 12:28:26 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
2017-07-06 16:37:26 +03:00
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
2017-07-06 16:46:17 +03:00
|
|
|
'name' => 'Room#removeSelfFromRoom',
|
2017-07-12 12:28:26 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}/participants/self',
|
2017-07-06 16:37:26 +03:00
|
|
|
'verb' => 'DELETE',
|
2017-09-19 17:46:54 +03:00
|
|
|
'requirements' => [
|
2021-03-04 15:35:46 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-09-19 17:46:54 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-10-29 16:15:31 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#removeAttendeeFromRoom',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/attendees',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
2021-03-04 15:35:46 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-10-29 16:15:31 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2021-05-31 22:34:28 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#setAttendeePublishingPermissions',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/attendees/publishing-permissions',
|
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v(4)',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-10-26 17:10:58 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#joinRoom',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/participants/active',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
2021-03-04 15:00:41 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-10-26 17:10:58 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2021-01-29 17:13:40 +03:00
|
|
|
[
|
2021-01-29 18:22:41 +03:00
|
|
|
'name' => 'Room#resendInvitations',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/participants/resend-invitations',
|
2021-01-29 17:13:40 +03:00
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
2021-03-04 15:35:46 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2021-01-29 17:13:40 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-10-26 17:10:58 +03:00
|
|
|
[
|
2018-03-26 17:25:54 +03:00
|
|
|
'name' => 'Room#leaveRoom',
|
2017-10-26 17:10:58 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}/participants/active',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
2021-03-04 15:02:02 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-10-26 17:10:58 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2017-07-10 17:50:07 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#promoteModerator',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/moderators',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
2021-03-04 15:34:06 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-10 17:50:07 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Room#demoteModerator',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/moderators',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
2021-03-04 15:34:06 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2017-07-10 17:50:07 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2018-07-06 23:50:57 +03:00
|
|
|
[
|
2018-07-13 17:27:34 +03:00
|
|
|
'name' => 'Room#addToFavorites',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/favorite',
|
2018-07-06 23:50:57 +03:00
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
2021-03-04 15:35:46 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2018-07-06 23:50:57 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
2018-07-13 17:27:34 +03:00
|
|
|
'name' => 'Room#removeFromFavorites',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/favorite',
|
2018-07-06 23:50:57 +03:00
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
2021-03-04 15:35:46 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2018-07-06 23:50:57 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-10-27 18:49:16 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#getParticipantByDialInPin',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/pin/{pin}',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
2021-03-04 15:35:46 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-10-27 18:49:16 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
'pin' => '^\d{7,32}$',
|
|
|
|
],
|
|
|
|
],
|
2018-10-01 16:02:11 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#setNotificationLevel',
|
|
|
|
'url' => '/api/{apiVersion}/room/{token}/notify',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
2021-03-04 15:35:46 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2018-10-01 16:02:11 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-11-27 19:29:09 +03:00
|
|
|
[
|
|
|
|
'name' => 'Room#setLobby',
|
2021-03-03 14:54:25 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}/webinar/lobby',
|
2020-11-27 19:29:09 +03:00
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2021-03-03 14:54:25 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-11-27 19:29:09 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Room#setSIPEnabled',
|
2021-03-03 14:54:25 +03:00
|
|
|
'url' => '/api/{apiVersion}/room/{token}/webinar/sip',
|
2020-11-27 19:29:09 +03:00
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2021-03-03 14:54:25 +03:00
|
|
|
'apiVersion' => 'v(4)',
|
2020-11-27 19:29:09 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-08-17 19:35:40 +03:00
|
|
|
|
2020-08-24 14:39:17 +03:00
|
|
|
/**
|
|
|
|
* Bridge settings
|
|
|
|
*/
|
|
|
|
[
|
2020-08-24 14:58:15 +03:00
|
|
|
'name' => 'MatterbridgeSettings#stopAllBridges',
|
2020-08-24 14:39:17 +03:00
|
|
|
'url' => '/api/{apiVersion}/bridge',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
2020-08-24 14:58:15 +03:00
|
|
|
'name' => 'MatterbridgeSettings#getMatterbridgeVersion',
|
2020-08-24 14:39:17 +03:00
|
|
|
'url' => '/api/{apiVersion}/bridge/version',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
2020-08-17 19:35:40 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Bridges
|
|
|
|
*/
|
2020-08-11 18:20:01 +03:00
|
|
|
[
|
2020-08-24 14:58:15 +03:00
|
|
|
'name' => 'Matterbridge#getBridgeOfRoom',
|
2020-08-20 15:16:54 +03:00
|
|
|
'url' => '/api/{apiVersion}/bridge/{token}',
|
2020-08-11 18:20:01 +03:00
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
2020-08-17 19:35:40 +03:00
|
|
|
'apiVersion' => 'v1',
|
2020-08-11 18:20:01 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-08-31 13:18:18 +03:00
|
|
|
[
|
|
|
|
'name' => 'Matterbridge#getBridgeProcessState',
|
|
|
|
'url' => '/api/{apiVersion}/bridge/{token}/process',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-08-11 18:20:01 +03:00
|
|
|
[
|
2020-08-24 14:58:15 +03:00
|
|
|
'name' => 'Matterbridge#editBridgeOfRoom',
|
2020-08-20 15:16:54 +03:00
|
|
|
'url' => '/api/{apiVersion}/bridge/{token}',
|
2020-08-11 18:20:01 +03:00
|
|
|
'verb' => 'PUT',
|
|
|
|
'requirements' => [
|
2020-08-17 19:35:40 +03:00
|
|
|
'apiVersion' => 'v1',
|
2020-08-11 18:20:01 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
2020-08-24 14:58:15 +03:00
|
|
|
'name' => 'Matterbridge#deleteBridgeOfRoom',
|
2020-08-20 15:16:54 +03:00
|
|
|
'url' => '/api/{apiVersion}/bridge/{token}',
|
2020-08-11 18:20:01 +03:00
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
2020-08-17 19:35:40 +03:00
|
|
|
'apiVersion' => 'v1',
|
2020-08-11 18:20:01 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
|
|
|
],
|
|
|
|
],
|
2020-08-24 12:16:59 +03:00
|
|
|
|
2021-06-11 06:35:54 +03:00
|
|
|
/**
|
|
|
|
* Federation
|
|
|
|
*/
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Federation#acceptShare',
|
2021-07-03 00:11:10 +03:00
|
|
|
'url' => 'api/{apiVersion}/federation/invitation/{id}',
|
2021-06-11 06:35:54 +03:00
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Federation#rejectShare',
|
2021-07-03 00:11:10 +03:00
|
|
|
'url' => 'api/{apiVersion}/federation/invitation/{id}',
|
2021-06-11 06:35:54 +03:00
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2018-07-12 05:44:42 +03:00
|
|
|
/**
|
|
|
|
* PublicShareAuth
|
|
|
|
*/
|
|
|
|
[
|
|
|
|
'name' => 'PublicShareAuth#createRoom',
|
|
|
|
'url' => '/api/{apiVersion}/publicshareauth',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => ['apiVersion' => 'v1'],
|
|
|
|
],
|
|
|
|
|
2018-10-05 21:41:47 +03:00
|
|
|
/**
|
2019-09-14 00:09:18 +03:00
|
|
|
* FilesIntegration
|
2018-10-05 21:41:47 +03:00
|
|
|
*/
|
|
|
|
[
|
2019-09-27 16:15:46 +03:00
|
|
|
'name' => 'FilesIntegration#getRoomByFileId',
|
2018-10-05 21:41:47 +03:00
|
|
|
'url' => '/api/{apiVersion}/file/{fileId}',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'fileId' => '.+'
|
|
|
|
],
|
|
|
|
],
|
2018-07-18 15:06:57 +03:00
|
|
|
[
|
2019-09-27 16:15:46 +03:00
|
|
|
'name' => 'FilesIntegration#getRoomByShareToken',
|
2018-07-18 15:06:57 +03:00
|
|
|
'url' => '/api/{apiVersion}/publicshare/{shareToken}',
|
|
|
|
'verb' => 'GET',
|
2019-09-27 16:15:46 +03:00
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
'shareToken' => '.+',
|
|
|
|
],
|
2018-07-18 15:06:57 +03:00
|
|
|
],
|
|
|
|
|
2018-03-26 19:24:39 +03:00
|
|
|
/**
|
|
|
|
* Guest
|
|
|
|
*/
|
2018-03-20 12:30:22 +03:00
|
|
|
[
|
|
|
|
'name' => 'Guest#setDisplayName',
|
2018-03-21 16:20:04 +03:00
|
|
|
'url' => '/api/{apiVersion}/guest/{token}/name',
|
2018-03-20 12:30:22 +03:00
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
2018-03-21 16:20:04 +03:00
|
|
|
'token' => '^[a-z0-9]{4,30}$',
|
2018-03-20 12:30:22 +03:00
|
|
|
],
|
|
|
|
],
|
2019-01-21 15:23:47 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Commands
|
|
|
|
*/
|
|
|
|
[
|
|
|
|
'name' => 'Command#index',
|
|
|
|
'url' => '/api/{apiVersion}/command',
|
|
|
|
'verb' => 'GET',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
2019-06-27 21:19:22 +03:00
|
|
|
],
|
|
|
|
],
|
2020-02-19 15:55:07 +03:00
|
|
|
|
|
|
|
/**
|
2020-10-14 15:17:12 +03:00
|
|
|
* Settings
|
2020-02-19 15:55:07 +03:00
|
|
|
*/
|
2020-10-14 15:17:12 +03:00
|
|
|
[
|
|
|
|
'name' => 'Settings#setSIPSettings',
|
|
|
|
'url' => '/api/{apiVersion}/settings/sip',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
2020-02-19 15:55:07 +03:00
|
|
|
[
|
|
|
|
'name' => 'Settings#setUserSetting',
|
|
|
|
'url' => '/api/{apiVersion}/settings/user',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
2020-05-19 01:04:37 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* HostedSignalingServer
|
|
|
|
*/
|
|
|
|
[
|
|
|
|
'name' => 'HostedSignalingServer#requestTrial',
|
|
|
|
'url' => '/api/{apiVersion}/hostedsignalingserver/requesttrial',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
2020-05-19 15:10:23 +03:00
|
|
|
[
|
|
|
|
'name' => 'HostedSignalingServer#auth',
|
|
|
|
'url' => '/api/{apiVersion}/hostedsignalingserver/auth',
|
|
|
|
'verb' => 'POST',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
2020-05-29 23:52:01 +03:00
|
|
|
[
|
|
|
|
'name' => 'HostedSignalingServer#deleteAccount',
|
|
|
|
'url' => '/api/{apiVersion}/hostedsignalingserver/delete',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
'requirements' => [
|
|
|
|
'apiVersion' => 'v1',
|
|
|
|
],
|
|
|
|
],
|
2021-03-22 14:27:12 +03:00
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'TempAvatar#postAvatar',
|
|
|
|
'url' => '/temp-user-avatar',
|
|
|
|
'verb' => 'POST',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'TempAvatar#deleteAvatar',
|
|
|
|
'url' => '/temp-user-avatar',
|
|
|
|
'verb' => 'DELETE',
|
|
|
|
],
|
2019-01-21 15:23:47 +03:00
|
|
|
],
|
2016-10-10 14:52:06 +03:00
|
|
|
];
|