Skip to content

Commit 5f95f0c

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(client): Fix Out-of-office endpoint and response data
Signed-off-by: Joas Schilling <[email protected]>
1 parent 266b9af commit 5f95f0c

9 files changed

+14
-15
lines changed

developer_manual/client_apis/OCS/ocs-out-of-office-api.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ OCS Out-of-office API
88

99
The OCS Out-of-office API allows you to access and modify out-of-office data of users.
1010

11-
The base URL for all calls to the share API is:
12-
*<nextcloud_base_url>/ocs/v2.php/apps/dav/api/v1/outOfOffice*
11+
The base URL for all calls to the share API is: ``<nextcloud_base_url>/ocs/v2.php/apps/dav/api/v1/outOfOffice``
1312

1413
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1514

@@ -20,7 +19,7 @@ Fetch ongoing data
2019
Fetch data of the ongoing out-of-office period of a user.
2120

2221
* Method: ``GET``
23-
* Endpoint: ``/{userId}``
22+
* Endpoint: ``/{userId}/now``
2423
* Response:
2524
- Status code:
2625
+ ``200 OK`` Out-of-office data
@@ -30,15 +29,15 @@ Fetch data of the ongoing out-of-office period of a user.
3029
+---------------------------------+-------------+---------------------------------------------------------------------+
3130
| field | type | Description |
3231
+---------------------------------+-------------+---------------------------------------------------------------------+
33-
| ``id`` | int | Database ID of the absence data entity |
32+
| ``id`` | string | Database ID of the absence data entity |
3433
+---------------------------------+-------------+---------------------------------------------------------------------+
3534
| ``userId`` | string | ID of the user which the data belongs to |
3635
+---------------------------------+-------------+---------------------------------------------------------------------+
37-
| ``firstDay`` | string | First day of the absence in format ``YYYY-MM-DD`` |
36+
| ``startDate`` | int | Timestamp of the start date (respecting the userId's timezone) |
3837
+---------------------------------+-------------+---------------------------------------------------------------------+
39-
| ``lastDay`` | string | Last day of the absence in format ``YYYY-MM-DD`` |
38+
| ``endDate`` | int | Timestamp of the end date (respecting the userId's timezone) |
4039
+---------------------------------+-------------+---------------------------------------------------------------------+
41-
| ``status`` | string | Short text that is set as user status during the absence |
40+
| ``shortMessage`` | string | Short text that is set as user status during the absence |
4241
+---------------------------------+-------------+---------------------------------------------------------------------+
4342
| ``message`` | string | Longer multiline message that is shown to others during the absence |
4443
+---------------------------------+-------------+---------------------------------------------------------------------+

developer_manual/client_apis/OCS/ocs-recommendations-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The OCS Recommendations API allows you to get a list of recommended files and fo
66

77
.. note:: This API requires the Recommendations app to be enabled.
88

9-
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v2.php/apps/recommendations/api/v1/*
9+
The base URL for all calls to the share API is: ``<nextcloud_base_url>/ocs/v2.php/apps/recommendations/api/v1/``
1010

1111
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1212

developer_manual/client_apis/OCS/ocs-share-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OCS Share API
55
The OCS Share API allows you to access the sharing API from outside over
66
pre-defined OCS calls.
77

8-
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v2.php/apps/files_sharing/api/v1*
8+
The base URL for all calls to the share API is: ``<nextcloud_base_url>/ocs/v2.php/apps/files_sharing/api/v1``
99

1010
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1111

developer_manual/client_apis/OCS/ocs-sharee-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OCS Sharee API
55
The OCS Sharee API allows you to access the sharing API from outside over
66
pre-defined OCS calls.
77

8-
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v1.php/apps/files_sharing/api/v1*
8+
The base URL for all calls to the share API is: ``<nextcloud_base_url>/ocs/v1.php/apps/files_sharing/api/v1``
99

1010
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1111

developer_manual/client_apis/OCS/ocs-status-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OCS Status API
44

55
The OCS Status API allows you to access and modify status API from outside over pre-defined OCS calls.
66

7-
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v2.php/apps/user_status/api/v1/user_status*
7+
The base URL for all calls to the share API is: ``<nextcloud_base_url>/ocs/v2.php/apps/user_status/api/v1/user_status``
88

99
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1010

developer_manual/client_apis/OCS/ocs-text2image-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ OCS Text-To-Image API
88

99
The OCS Text-To-Image API allows you to run image generation tasks implemented by apps using :ref:`the backend Text-To-Image API<text2image>`.
1010

11-
The base URL for all calls to this API is: *<nextcloud_base_url>/ocs/v2.php/text2image/*
11+
The base URL for all calls to this API is: ``<nextcloud_base_url>/ocs/v2.php/text2image/``
1212

1313
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1414

developer_manual/client_apis/OCS/ocs-textprocessing-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ OCS TextProcessing API
1111

1212
The OCS Text processing API allows you to run text processing tasks, like prompting large language models implemented by apps using :ref:`the backend Text Processing API<text_processing>`.
1313

14-
The base URL for all calls to this API is: *<nextcloud_base_url>/ocs/v2.php/textprocessing/*
14+
The base URL for all calls to this API is: ``<nextcloud_base_url>/ocs/v2.php/textprocessing/``
1515

1616
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1717

developer_manual/client_apis/OCS/ocs-translation-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ OCS Translation API
88

99
The OCS Translation API allows you to translate strings from a language to another.
1010

11-
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v2.php/translation/*
11+
The base URL for all calls to the share API is: ``<nextcloud_base_url>/ocs/v2.php/translation/``
1212

1313
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1414

developer_manual/client_apis/OCS/ocs-user-preferences-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OCS user preferences API
44

55
The OCS user preferences API allows you to set and delete preferences from outside over pre-defined OCS calls.
66

7-
The base URL for all calls to the share API is: *<nextcloud_base_url>/ocs/v2.php/apps/provisioning_api/api/v1/config/users/*
7+
The base URL for all calls to the share API is: ``<nextcloud_base_url>/ocs/v2.php/apps/provisioning_api/api/v1/config/users/``
88

99
All calls to OCS endpoints require the ``OCS-APIRequest`` header to be set to ``true``.
1010

0 commit comments

Comments
 (0)