Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-03-15 15:45:26 +01:00
Родитель ee48e03ebf
Коммит 6f2759faf7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7076EA9751AACDDA
12 изменённых файлов: 37 добавлений и 0 удалений

Просмотреть файл

@ -30,9 +30,13 @@ $requirements = [
return [
'ocs' => [
/** @see \OCA\Talk\Controller\CallController::getPeersForCall() */
['name' => 'Call#getPeersForCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\CallController::joinCall() */
['name' => 'Call#joinCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'POST', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\CallController::updateCallFlags() */
['name' => 'Call#updateCallFlags', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'PUT', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\CallController::leaveCall() */
['name' => 'Call#leaveCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
],
];

Просмотреть файл

@ -36,13 +36,21 @@ $requirementsWithMessageId = [
return [
'ocs' => [
/** @see \OCA\Talk\Controller\ChatController::receiveMessages() */
['name' => 'Chat#receiveMessages', 'url' => '/api/{apiVersion}/chat/{token}', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\ChatController::sendMessage() */
['name' => 'Chat#sendMessage', 'url' => '/api/{apiVersion}/chat/{token}', 'verb' => 'POST', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\ChatController::clearHistory() */
['name' => 'Chat#clearHistory', 'url' => '/api/{apiVersion}/chat/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\ChatController::deleteMessage() */
['name' => 'Chat#deleteMessage', 'url' => '/api/{apiVersion}/chat/{token}/{messageId}', 'verb' => 'DELETE', 'requirements' => $requirementsWithMessageId],
/** @see \OCA\Talk\Controller\ChatController::setReadMarker() */
['name' => 'Chat#setReadMarker', 'url' => '/api/{apiVersion}/chat/{token}/read', 'verb' => 'POST', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\ChatController::markUnread() */
['name' => 'Chat#markUnread', 'url' => '/api/{apiVersion}/chat/{token}/read', 'verb' => 'DELETE', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\ChatController::mentions() */
['name' => 'Chat#mentions', 'url' => '/api/{apiVersion}/chat/{token}/mentions', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\ChatController::shareObjectToChat() */
['name' => 'Chat#shareObjectToChat', 'url' => '/api/{apiVersion}/chat/{token}/share', 'verb' => 'POST', 'requirements' => $requirements],
],
];

Просмотреть файл

@ -25,6 +25,7 @@ declare(strict_types=1);
return [
'ocs' => [
/** @see \OCA\Talk\Controller\CommandController::index() */
['name' => 'Command#index', 'url' => '/api/{apiVersion}/command', 'verb' => 'GET', 'requirements' => [
'apiVersion' => 'v1',
]],

Просмотреть файл

@ -29,8 +29,11 @@ $requirements = [
return [
'ocs' => [
/** @see \OCA\Talk\Controller\FederationController::acceptShare() */
['name' => 'Federation#acceptShare', 'url' => 'api/{apiVersion}/federation/invitation/{id}', 'verb' => 'POST', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\FederationController::rejectShare() */
['name' => 'Federation#rejectShare', 'url' => 'api/{apiVersion}/federation/invitation/{id}', 'verb' => 'DELETE', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\FederationController::getShares() */
['name' => 'Federation#getShares', 'url' => 'api/{apiVersion}/federation/invitation', 'verb' => 'GET', 'requirements' => $requirements],
],
];

Просмотреть файл

@ -25,10 +25,12 @@ declare(strict_types=1);
return [
'ocs' => [
/** @see \OCA\Talk\Controller\FilesIntegrationController::getRoomByFileId() */
['name' => 'FilesIntegration#getRoomByFileId', 'url' => '/api/{apiVersion}/file/{fileId}', 'verb' => 'GET', 'requirements' => [
'apiVersion' => 'v1',
'fileId' => '.+'
]],
/** @see \OCA\Talk\Controller\FilesIntegrationController::getRoomByShareToken() */
['name' => 'FilesIntegration#getRoomByShareToken', 'url' => '/api/{apiVersion}/publicshare/{shareToken}', 'verb' => 'GET', 'requirements' => [
'apiVersion' => 'v1',
'shareToken' => '.+',

Просмотреть файл

@ -25,6 +25,7 @@ declare(strict_types=1);
return [
'ocs' => [
/** @see \OCA\Talk\Controller\GuestController::setDisplayName() */
['name' => 'Guest#setDisplayName', 'url' => '/api/{apiVersion}/guest/{token}/name', 'verb' => 'POST', 'requirements' => [
'apiVersion' => 'v1',
'token' => '^[a-z0-9]{4,30}$',

Просмотреть файл

@ -29,8 +29,11 @@ $requirements = [
return [
'ocs' => [
/** @see \OCA\Talk\Controller\HostedSignalingServerController::requestTrial() */
['name' => 'HostedSignalingServer#requestTrial', 'url' => '/api/{apiVersion}/hostedsignalingserver/requesttrial', 'verb' => 'POST', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\HostedSignalingServerController::auth() */
['name' => 'HostedSignalingServer#auth', 'url' => '/api/{apiVersion}/hostedsignalingserver/auth', 'verb' => 'POST', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\HostedSignalingServerController::deleteAccount() */
['name' => 'HostedSignalingServer#deleteAccount', 'url' => '/api/{apiVersion}/hostedsignalingserver/delete', 'verb' => 'DELETE', 'requirements' => $requirements],
],
];

Просмотреть файл

@ -30,9 +30,13 @@ $requirements = [
return [
'ocs' => [
/** @see \OCA\Talk\Controller\MatterbridgeController::getBridgeOfRoom() */
['name' => 'Matterbridge#getBridgeOfRoom', 'url' => '/api/{apiVersion}/bridge/{token}', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\MatterbridgeController::getBridgeProcessState() */
['name' => 'Matterbridge#getBridgeProcessState', 'url' => '/api/{apiVersion}/bridge/{token}/process', 'verb' => 'GET', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\MatterbridgeController::editBridgeOfRoom() */
['name' => 'Matterbridge#editBridgeOfRoom', 'url' => '/api/{apiVersion}/bridge/{token}', 'verb' => 'PUT', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\MatterbridgeController::deleteBridgeOfRoom() */
['name' => 'Matterbridge#deleteBridgeOfRoom', 'url' => '/api/{apiVersion}/bridge/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
],
];

Просмотреть файл

@ -29,7 +29,9 @@ $requirements = [
return [
'ocs' => [
/** @see \OCA\Talk\Controller\MatterbridgeSettingsController::stopAllBridges() */
['name' => 'MatterbridgeSettings#stopAllBridges', 'url' => '/api/{apiVersion}/bridge', 'verb' => 'DELETE', 'requirements' => $requirements],
/** @see \OCA\Talk\Controller\MatterbridgeSettingsController::getMatterbridgeVersion() */
['name' => 'MatterbridgeSettings#getMatterbridgeVersion', 'url' => '/api/{apiVersion}/bridge/version', 'verb' => 'GET', 'requirements' => $requirements],
],
];

Просмотреть файл

@ -25,10 +25,15 @@ declare(strict_types=1);
return [
'routes' => [
/** @see \OCA\Talk\Controller\PageController::index() */
['name' => 'Page#index', 'url' => '/', 'verb' => 'GET'],
/** @see \OCA\Talk\Controller\PageController::notFound() */
['name' => 'Page#notFound', 'url' => '/not-found', 'verb' => 'GET'],
/** @see \OCA\Talk\Controller\PageController::duplicateSession() */
['name' => 'Page#duplicateSession', 'url' => '/duplicate-session', 'verb' => 'GET'],
/** @see \OCA\Talk\Controller\PageController::showCall() */
['name' => 'Page#showCall', 'url' => '/call/{token}', 'root' => '', 'verb' => 'GET'],
/** @see \OCA\Talk\Controller\PageController::authenticatePassword() */
['name' => 'Page#authenticatePassword', 'url' => '/call/{token}', 'root' => '', 'verb' => 'POST'],
],
];

Просмотреть файл

@ -25,6 +25,7 @@ declare(strict_types=1);
return [
'ocs' => [
/** @see \OCA\Talk\Controller\PublicShareAuthController::createRoom() */
['name' => 'PublicShareAuth#createRoom', 'url' => '/api/{apiVersion}/publicshareauth', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v1'],],
],
];

Просмотреть файл

@ -25,14 +25,17 @@ declare(strict_types=1);
return [
'ocs' => [
/** @see \OCA\Talk\Controller\ReactionController::react() */
['name' => 'Reaction#react', 'url' => '/api/{apiVersion}/reaction/{token}/{messageId}', 'verb' => 'POST', 'requirements' => [
'apiVersion' => 'v1',
'token' => '^[a-z0-9]{4,30}$',
]],
/** @see \OCA\Talk\Controller\ReactionController::delete() */
['name' => 'Reaction#delete', 'url' => '/api/{apiVersion}/reaction/{token}/{messageId}', 'verb' => 'DELETE', 'requirements' => [
'apiVersion' => 'v1',
'token' => '^[a-z0-9]{4,30}$',
]],
/** @see \OCA\Talk\Controller\ReactionController::getReactions() */
['name' => 'Reaction#getReactions', 'url' => '/api/{apiVersion}/reaction/{token}/{messageId}', 'verb' => 'GET', 'requirements' => [
'apiVersion' => 'v1',
'token' => '^[a-z0-9]{4,30}$',