Fix api description for Users#getDisabledUsers

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/39756/head
Côme Chilliet 2 years ago
parent 61da2b97d0
commit afcebd1e92
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 2
      apps/provisioning_api/lib/Controller/UsersController.php
  2. 7
      apps/provisioning_api/openapi.json

@ -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();

@ -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": {

Loading…
Cancel
Save