From 259264b966b3fde0cfcfb44e8047206c58917268 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 14 Jun 2023 14:43:41 +0200 Subject: files: Add OpenAPI spec Signed-off-by: jld3103 --- .../files/lib/Controller/OpenLocalEditorController.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'apps/files/lib/Controller/OpenLocalEditorController.php') diff --git a/apps/files/lib/Controller/OpenLocalEditorController.php b/apps/files/lib/Controller/OpenLocalEditorController.php index 7d784196361..d9fb80f2d2b 100644 --- a/apps/files/lib/Controller/OpenLocalEditorController.php +++ b/apps/files/lib/Controller/OpenLocalEditorController.php @@ -70,6 +70,14 @@ class OpenLocalEditorController extends OCSController { /** * @NoAdminRequired * @UserRateThrottle(limit=10, period=120) + * + * Create a local editor + * + * @param string $path Path of the file + * + * @return DataResponse|DataResponse, array{}> + * + * 200: Local editor returned */ public function create(string $path): DataResponse { $pathHash = sha1($path); @@ -107,6 +115,16 @@ class OpenLocalEditorController extends OCSController { /** * @NoAdminRequired * @BruteForceProtection(action=openLocalEditor) + * + * Validate a local editor + * + * @param string $path Path of the file + * @param string $token Token of the local editor + * + * @return DataResponse|DataResponse, array{}> + * + * 200: Local editor validated successfully + * 404: Local editor not found */ public function validate(string $path, string $token): DataResponse { $pathHash = sha1($path); -- cgit v1.2.3