diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-07-13 12:25:51 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-07-17 13:55:55 +0200 |
commit | 0d07ad98b067ea4fb6f5b871442fbdac2d87440a (patch) | |
tree | e4adc008639ddcd948337585edd82c75785e3529 /core/Controller | |
parent | 969cc52851aa579b7b265624c1f3ad6f8b90d6ed (diff) | |
download | nextcloud-server-0d07ad98b067ea4fb6f5b871442fbdac2d87440a.tar.gz nextcloud-server-0d07ad98b067ea4fb6f5b871442fbdac2d87440a.zip |
fix(TaskProcessing): Update openapi specs
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/TaskProcessingApiController.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php index 1107b13d964..d9bcbd5da45 100644 --- a/core/Controller/TaskProcessingApiController.php +++ b/core/Controller/TaskProcessingApiController.php @@ -295,9 +295,10 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController { * Use field 'file' for the file upload * * @param int $taskId The id of the task - * @return DataResponse<Http::STATUS_CREATED, array{fileId: int}, array{}>|DataResponse<Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}> + * @return DataResponse<Http::STATUS_CREATED, array{fileId: int}, array{}>|DataResponse<Http::STATUS_BAD_REQUEST|Http::STATUS_INTERNAL_SERVER_ERROR|Http::STATUS_NOT_FOUND, array{message: string}, array{}> * * 201: File created + * 400: File upload failed or no file was uploaded * 404: Task not found */ #[ExAppRequired] @@ -530,6 +531,11 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController { } } + /** + * @param resource $data + * @return int + * @throws NotPermittedException + */ private function setFileContentsInternal($data): int { try { $folder = $this->appData->getFolder('TaskProcessing'); |