diff options
author | Hamza Mahjoubi <hamzamahjoubi221@gmail.com> | 2024-06-10 16:30:53 +0200 |
---|---|---|
committer | Hamza Mahjoubi <hamzamahjoubi221@gmail.com> | 2024-07-01 15:10:16 +0200 |
commit | a9774741e815c02a9f5973bf6477a7c9da653732 (patch) | |
tree | 171ab358957d002bd4e13dea0d532d0c826ca51c /apps/dav/openapi.json | |
parent | 3b75c5b98cd0356e99c07d9696c49732f195b3f6 (diff) | |
download | nextcloud-server-a9774741e815c02a9f5973bf6477a7c9da653732.tar.gz nextcloud-server-a9774741e815c02a9f5973bf6477a7c9da653732.zip |
Feat: Allow users to select another user as their out-of-office replacement
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Diffstat (limited to 'apps/dav/openapi.json')
-rw-r--r-- | apps/dav/openapi.json | 58 |
1 files changed, 57 insertions, 1 deletions
diff --git a/apps/dav/openapi.json b/apps/dav/openapi.json index da514da7bb7..71cebfa684b 100644 --- a/apps/dav/openapi.json +++ b/apps/dav/openapi.json @@ -133,7 +133,9 @@ "type": "object", "required": [ "userId", - "message" + "message", + "replacementUserId", + "replacementUserDisplayName" ], "properties": { "userId": { @@ -141,6 +143,12 @@ }, "message": { "type": "string" + }, + "replacementUserId": { + "type": "string" + }, + "replacementUserDisplayName": { + "type": "string" } } } @@ -571,6 +579,24 @@ } }, { + "name": "replacementUserId", + "in": "query", + "description": "User id of the replacement user", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "replacementUserDisplayName", + "in": "query", + "description": "Display name of the replacement user", + "schema": { + "type": "string", + "default": "" + } + }, + { "name": "userId", "in": "path", "required": true, @@ -690,6 +716,36 @@ } } } + }, + "404": { + "description": "When the replacementUserId was provided but replacement user was not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "nullable": true + } + } + } + } + } + } + } } } }, |