diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-29 18:57:17 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-29 18:57:17 +0300 |
commit | 956a33d8dc1c7a5631929fef13acc5780a82331b (patch) | |
tree | 89cfd02650315fa338d23fb4494075f9e1dde390 | |
parent | 56e8cdc0d7c9a2b022a12132d5a4febed9b5cbdb (diff) |
Add docs and capabilityfeature/noid/f
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | docs/call.md | 22 | ||||
-rw-r--r-- | docs/capabilities.md | 1 | ||||
-rw-r--r-- | lib/Capabilities.php | 1 | ||||
-rw-r--r-- | tests/php/CapabilitiesTest.php | 1 |
4 files changed, 25 insertions, 0 deletions
diff --git a/docs/call.md b/docs/call.md index fba81dfe8..a55df5e34 100644 --- a/docs/call.md +++ b/docs/call.md @@ -47,6 +47,28 @@ + `404 Not Found` When the user did not join the conversation before + `412 Precondition Failed` When the lobby is active and the user is not a moderator +## Resend call notification + +* Required capability: `resend-call-notification` +* Method: `POST` +* Endpoint: `/call/{token}/ring` +* Data: + + field | type | Description + ---|---|--- + `attendeeId` | int | The participant to notify + +* Response: + - Status code: + + `200 OK` + + `400 Bad Request` When the target participant is not a user (Guest, group, etc.) + + `400 Bad Request` When the target participant is already in the call + + `400 Bad Request` When the room has no call in process + + `400 Bad Request` When the actor is not in the call + + `403 Forbidden` When the current user is not a moderator + + `404 Not Found` When the conversation could not be found for the participant + + `412 Precondition Failed` When the lobby is active and the user is not a moderator + ## Update call flags * Method: `PUT` diff --git a/docs/capabilities.md b/docs/capabilities.md index f9e989427..94739dbe7 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -92,3 +92,4 @@ title: Capabilities * `reactions` - Api reactions to chat message * `rich-object-list-media` - When the API to get the chat messages for shared media is available * `rich-object-delete` - When the API allows to delete chat messages which are file or rich object shares +* `resend-call-notification` - When the API allows to resend call notifications for individual users that did not join yet diff --git a/lib/Capabilities.php b/lib/Capabilities.php index 798bb5a1d..2c85c6e8a 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -106,6 +106,7 @@ class Capabilities implements IPublicCapability { 'conversation-permissions', 'rich-object-list-media', 'rich-object-delete', + 'resend-call-notification', ], 'config' => [ 'attachments' => [ diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php index 518fa14b9..ff2ecfbd6 100644 --- a/tests/php/CapabilitiesTest.php +++ b/tests/php/CapabilitiesTest.php @@ -105,6 +105,7 @@ class CapabilitiesTest extends TestCase { 'conversation-permissions', 'rich-object-list-media', 'rich-object-delete', + 'resend-call-notification', 'reactions', ]; } |