From f1ecc18fae215126fa3c3f2e1953f152d0c72957 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 Dec 2024 11:55:19 +0100 Subject: [PATCH] fixup! fixup! fixup! fixup! feat(call): Direct endpoint to check if call notification should be dismissed --- appinfo/routes/routesCallController.php | 2 +- openapi-full.json | 2 +- openapi.json | 2 +- src/types/openapi/openapi-full.ts | 2 +- src/types/openapi/openapi.ts | 2 +- tests/integration/features/bootstrap/FeatureContext.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/appinfo/routes/routesCallController.php b/appinfo/routes/routesCallController.php index afcafb01117..2a878c77153 100644 --- a/appinfo/routes/routesCallController.php +++ b/appinfo/routes/routesCallController.php @@ -16,7 +16,7 @@ /** @see \OCA\Talk\Controller\CallController::getPeersForCall() */ ['name' => 'Call#getPeersForCall', 'url' => '/api/{apiVersion}/call/{token}', 'verb' => 'GET', 'requirements' => $requirements], /** @see \OCA\Talk\Controller\CallNotificationController::state() */ - ['name' => 'CallNotification#state', 'url' => '/api/{apiVersion}/call/{token}/notification', 'verb' => 'GET', 'requirements' => $requirements], + ['name' => 'CallNotification#state', 'url' => '/api/{apiVersion}/call/{token}/notification-state', 'verb' => 'GET', 'requirements' => $requirements], /** @see \OCA\Talk\Controller\CallController::downloadParticipantsForCall() */ ['name' => 'Call#downloadParticipantsForCall', 'url' => '/api/{apiVersion}/call/{token}/download', 'verb' => 'GET', 'requirements' => $requirements], /** @see \OCA\Talk\Controller\CallController::joinCall() */ diff --git a/openapi-full.json b/openapi-full.json index 58e5ab323e9..eccc60c132b 100644 --- a/openapi-full.json +++ b/openapi-full.json @@ -4560,7 +4560,7 @@ } } }, - "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": { + "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": { "get": { "operationId": "call_notification-state", "summary": "Check the expected state of a call notification", diff --git a/openapi.json b/openapi.json index 7715831d533..e00793473bf 100644 --- a/openapi.json +++ b/openapi.json @@ -4447,7 +4447,7 @@ } } }, - "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": { + "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": { "get": { "operationId": "call_notification-state", "summary": "Check the expected state of a call notification", diff --git a/src/types/openapi/openapi-full.ts b/src/types/openapi/openapi-full.ts index f746769ac34..eafe8a13943 100644 --- a/src/types/openapi/openapi-full.ts +++ b/src/types/openapi/openapi-full.ts @@ -261,7 +261,7 @@ export type paths = { patch?: never; trace?: never; }; - "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": { + "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": { parameters: { query?: never; header?: never; diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 7567f280c2f..6a208fd0f90 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -261,7 +261,7 @@ export type paths = { patch?: never; trace?: never; }; - "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification": { + "/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/notification-state": { parameters: { query?: never; header?: never; diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 6af3ffe14b3..82107eadc16 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -2139,7 +2139,7 @@ public function userJoinsCall(string $user, string $identifier, int $statusCode, */ public function userChecksCallNotification(string $user, string $identifier, int $statusCode, string $apiVersion, ?TableNode $formData = null): void { $this->setCurrentUser($user); - $this->sendRequest('GET', '/apps/spreed/api/' . $apiVersion . '/call/' . self::$identifierToToken[$identifier] . '/notification'); + $this->sendRequest('GET', '/apps/spreed/api/' . $apiVersion . '/call/' . self::$identifierToToken[$identifier] . '/notification-state'); $this->assertStatusCode($this->response, $statusCode); }