Browse Source

chore: Regenerate openapi.json

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/45094/head
Marcel Klehr 1 month ago
parent
commit
3b0925a064
3 changed files with 997 additions and 7 deletions
  1. 5
    5
      core/Controller/TaskProcessingApiController.php
  2. 2
    2
      core/ResponseDefinitions.php
  3. 990
    0
      core/openapi.json

+ 5
- 5
core/Controller/TaskProcessingApiController.php View File

@@ -69,8 +69,7 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController {
/**
* This endpoint returns all available TaskProcessing task types
*
* @return DataResponse<Http::STATUS_OK, array{types: array<string, CoreTaskProcessingTaskType>}>
* []}, array{}>
* @return DataResponse<Http::STATUS_OK, array{types: array<string, CoreTaskProcessingTaskType>}, array{}>
*
* 200: Task types returned
*/
@@ -131,7 +130,7 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController {

/**
* This endpoint allows checking the status and results of a task.
* Tasks are removed 1 week after receiving their last update.
* Tasks are removed 1 week after receiving their last update
*
* @param int $id The id of the task
*
@@ -222,11 +221,12 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController {
/**
* This endpoint returns the contents of a file referenced in a task
*
* @param int $taskId
* @param int $fileId
* @param int $taskId The id of the task
* @param int $fileId The file id of the file to retrieve
* @return DataDownloadResponse<Http::STATUS_OK, string, array{}>|DataResponse<Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}>
*
* 200: File content returned
* 404: Task or file not found
*/
#[NoAdminRequired]
#[ApiRoute(verb: 'GET', url: '/tasks/{taskId}/file/{fileId}', root: '/taskprocessing')]

+ 2
- 2
core/ResponseDefinitions.php View File

@@ -197,8 +197,8 @@ namespace OCA\Core;
* status: int,
* userId: ?string,
* appId: string,
* input: array,
* output: ?array,
* input: array<string, mixed>,
* output: ?array<string, mixed>,
* identifier: ?string,
* completionExpectedAt: ?int,
* progress: ?float

+ 990
- 0
core/openapi.json
File diff suppressed because it is too large
View File


Loading…
Cancel
Save