diff options
author | Vitor Mattos <vitor@php.rio> | 2022-05-05 21:28:40 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-06-30 15:01:23 -0300 |
commit | 1df40aec0b3db418d3f1d646e699e661e7b86bb9 (patch) | |
tree | dbacf8fe6d9976b810cfbdbb6774d898b912b8a0 | |
parent | a8b9a87b40db64fe5d4f46f65dd2d21c948c6b8c (diff) |
Add mocked endpoints
Signed-off-by: Vitor Mattos <vitor@php.rio>
-rw-r--r-- | appinfo/routes/routesRoomController.php | 2 | ||||
-rw-r--r-- | lib/Capabilities.php | 1 | ||||
-rw-r--r-- | lib/Controller/RoomController.php | 4 | ||||
-rw-r--r-- | tests/php/CapabilitiesTest.php | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/appinfo/routes/routesRoomController.php b/appinfo/routes/routesRoomController.php index 5867d6be5..b68b7824b 100644 --- a/appinfo/routes/routesRoomController.php +++ b/appinfo/routes/routesRoomController.php @@ -102,5 +102,7 @@ return [ ['name' => 'Room#setLobby', 'url' => '/api/{apiVersion}/room/{token}/webinar/lobby', 'verb' => 'PUT', 'requirements' => $requirementsWithToken], /** @see \OCA\Talk\Controller\RoomController::setSIPEnabled() */ ['name' => 'Room#setSIPEnabled', 'url' => '/api/{apiVersion}/room/{token}/webinar/sip', 'verb' => 'PUT', 'requirements' => $requirementsWithToken], + /** @see \OCA\Talk\Controller\RoomController::setTimeToLive() */ + ['name' => 'Room#setTimeToLive', 'url' => '/api/{apiVersion}/room/{token}/ttl', 'verb' => 'POST', 'requirements' => $requirements], ], ]; diff --git a/lib/Capabilities.php b/lib/Capabilities.php index aab628c28..1a6174a87 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -111,6 +111,7 @@ class Capabilities implements IPublicCapability { 'silent-send', 'silent-call', 'send-call-notification', + 'time-to-live', ], 'config' => [ 'attachments' => [ diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index 40c457de3..103199fc9 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -1706,4 +1706,8 @@ class RoomController extends AEnvironmentAwareController { } return new DataResponse(); } + + public function setTimeToLive(int $ttl): DataResponse { + return new DataResponse(); + } } diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php index 6ed562035..10db20ad2 100644 --- a/tests/php/CapabilitiesTest.php +++ b/tests/php/CapabilitiesTest.php @@ -121,6 +121,7 @@ class CapabilitiesTest extends TestCase { 'silent-send', 'silent-call', 'send-call-notification', + 'time-to-live', 'reactions', ]; } |