mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
fix: openapi
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
839ddaa354
commit
9593f4d6f9
12 changed files with 23 additions and 22 deletions
|
|
@ -268,7 +268,7 @@
|
|||
"/ocs/v2.php/apps/dav/api/v1/outOfOffice/{userId}/now": {
|
||||
"get": {
|
||||
"operationId": "out_of_office-get-current-out-of-office-data",
|
||||
"summary": "Get the currently configured out-of-office data of a user.",
|
||||
"summary": "Get the currently configured out-of-office data of a user",
|
||||
"tags": [
|
||||
"out_of_office"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"info": {
|
||||
"title": "federation",
|
||||
"version": "0.0.1",
|
||||
"description": "Federation allows you to connect with other trusted servers to exchange the user directory.",
|
||||
"description": "Federation allows you to connect with other trusted servers to exchange the account directory.",
|
||||
"license": {
|
||||
"name": "agpl"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class ApiController extends OCSController {
|
|||
* @return DataResponse<Http::STATUS_OK, array{dueDate: ?string}, array{}>|DataResponse<Http::STATUS_UNAUTHORIZED, array<empty>, array{}>
|
||||
*
|
||||
* 200: Reminder returned
|
||||
* 401: User not found
|
||||
* 401: Account not found
|
||||
*/
|
||||
#[NoAdminRequired]
|
||||
public function get(int $fileId): DataResponse {
|
||||
|
|
@ -93,7 +93,7 @@ class ApiController extends OCSController {
|
|||
* 200: Reminder updated
|
||||
* 201: Reminder created successfully
|
||||
* 400: Creating reminder is not possible
|
||||
* 401: User not found
|
||||
* 401: Account not found
|
||||
* 404: File not found
|
||||
*/
|
||||
#[NoAdminRequired]
|
||||
|
|
@ -129,7 +129,7 @@ class ApiController extends OCSController {
|
|||
* @return DataResponse<Http::STATUS_OK|Http::STATUS_UNAUTHORIZED|Http::STATUS_NOT_FOUND, array<empty>, array{}>
|
||||
*
|
||||
* 200: Reminder deleted successfully
|
||||
* 401: User not found
|
||||
* 401: Account not found
|
||||
* 404: Reminder not found
|
||||
*/
|
||||
#[NoAdminRequired]
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "User not found",
|
||||
"description": "Account not found",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -303,7 +303,7 @@
|
|||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "User not found",
|
||||
"description": "Account not found",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -435,7 +435,7 @@
|
|||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "User not found",
|
||||
"description": "Account not found",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"info": {
|
||||
"title": "files_trashbin",
|
||||
"version": "0.0.1",
|
||||
"description": "This application enables users to restore files that were deleted from the system.",
|
||||
"description": "This application enables people to restore files that were deleted from the system.",
|
||||
"license": {
|
||||
"name": "agpl"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"info": {
|
||||
"title": "provisioning_api-administration",
|
||||
"version": "0.0.1",
|
||||
"description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.",
|
||||
"description": "This application enables a set of APIs that external systems can use to manage accounts, groups and apps.",
|
||||
"license": {
|
||||
"name": "agpl"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"info": {
|
||||
"title": "provisioning_api-full",
|
||||
"version": "0.0.1",
|
||||
"description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.",
|
||||
"description": "This application enables a set of APIs that external systems can use to manage accounts, groups and apps.",
|
||||
"license": {
|
||||
"name": "agpl"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"info": {
|
||||
"title": "provisioning_api",
|
||||
"version": "0.0.1",
|
||||
"description": "This application enables a set of APIs that external systems can use to manage users, groups and apps.",
|
||||
"description": "This application enables a set of APIs that external systems can use to manage accounts, groups and apps.",
|
||||
"license": {
|
||||
"name": "agpl"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"info": {
|
||||
"title": "systemtags",
|
||||
"version": "0.0.1",
|
||||
"description": "Collaborative tagging functionality which shares tags among users.",
|
||||
"description": "Collaborative tagging functionality which shares tags among people.",
|
||||
"license": {
|
||||
"name": "agpl"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,13 +48,13 @@ class HoverCardController extends \OCP\AppFramework\OCSController {
|
|||
/**
|
||||
* @NoAdminRequired
|
||||
*
|
||||
* Get the user details for a hovercard
|
||||
* Get the account details for a hovercard
|
||||
*
|
||||
* @param string $userId ID of the user
|
||||
* @return DataResponse<Http::STATUS_OK, array{userId: string, displayName: string, actions: CoreContactsAction[]}, array{}>|DataResponse<Http::STATUS_NOT_FOUND, array<empty>, array{}>
|
||||
*
|
||||
* 200: User details returned
|
||||
* 404: User not found
|
||||
* 200: Account details returned
|
||||
* 404: Account not found
|
||||
*/
|
||||
public function getUser(string $userId): DataResponse {
|
||||
$contact = $this->manager->findOne($this->userSession->getUser(), IShare::TYPE_USER, $userId);
|
||||
|
|
|
|||
|
|
@ -2421,7 +2421,7 @@
|
|||
"/ocs/v2.php/hovercard/v1/{userId}": {
|
||||
"get": {
|
||||
"operationId": "hover_card-get-user",
|
||||
"summary": "Get the user details for a hovercard",
|
||||
"summary": "Get the account details for a hovercard",
|
||||
"tags": [
|
||||
"hover_card"
|
||||
],
|
||||
|
|
@ -2456,7 +2456,7 @@
|
|||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "User details returned",
|
||||
"description": "Account details returned",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -2505,7 +2505,7 @@
|
|||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "User not found",
|
||||
"description": "Account not found",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -4001,7 +4001,7 @@
|
|||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "User not found",
|
||||
"description": "Account not found",
|
||||
"content": {
|
||||
"text/plain": {
|
||||
"schema": {
|
||||
|
|
|
|||
|
|
@ -366,8 +366,9 @@ class Setup {
|
|||
}
|
||||
|
||||
$this->outputDebug($output, 'Create admin account');
|
||||
//create the and group
|
||||
$ = null;
|
||||
|
||||
// create the admin account and group
|
||||
$user = null;
|
||||
try {
|
||||
$user = Server::get(IUserManager::class)->createUser($username, $password);
|
||||
if (!$user) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue