diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-09 14:50:12 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-09 14:50:12 +0200 |
commit | afcebd1e928f6131122bc166af2b37c24717891f (patch) | |
tree | f87dc34c46e3928be775de478b3c8cb540a9b52c /apps | |
parent | 61da2b97d0eaa194a9a83138c9a66a5d615c8f45 (diff) | |
download | nextcloud-server-afcebd1e928f6131122bc166af2b37c24717891f.tar.gz nextcloud-server-afcebd1e928f6131122bc166af2b37c24717891f.zip |
Fix api description for Users#getDisabledUsers
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 2 | ||||
-rw-r--r-- | apps/provisioning_api/openapi.json | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 4ee87b960f1..95778eff366 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -238,6 +238,8 @@ class UsersController extends AUserData { * @param ?int $limit Limit the amount of users returned * @param int $offset Offset * @return DataResponse<Http::STATUS_OK, array{users: array<string, ProvisioningApiUserDetails|array{id: string}>}, array{}> + * + * 200: Disabled users details returned */ public function getDisabledUsersDetails(?int $limit = null, int $offset = 0): DataResponse { $currentUser = $this->userSession->getUser(); diff --git a/apps/provisioning_api/openapi.json b/apps/provisioning_api/openapi.json index 115189e8008..566e907bac1 100644 --- a/apps/provisioning_api/openapi.json +++ b/apps/provisioning_api/openapi.json @@ -2067,16 +2067,17 @@ { "name": "OCS-APIRequest", "in": "header", + "description": "Required to be true for the API request to pass", "required": true, "schema": { - "type": "string", - "default": "true" + "type": "boolean", + "default": true } } ], "responses": { "200": { - "description": "", + "description": "Disabled users details returned", "content": { "application/json": { "schema": { |