From 012e2687ab9f4307b299dc1018794d1f22e93574 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 31 Jul 2024 14:53:25 -0700 Subject: feat(files): Update openapi spec Signed-off-by: Christopher Ng --- apps/files/lib/Controller/ApiController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/files/lib/Controller') diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index e5b9086995e..0d4503682b0 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -11,6 +11,7 @@ use OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException; use OC\Files\Node\Node; use OC\Files\Search\SearchComparison; use OC\Files\Search\SearchQuery; +use OCA\Files\ResponseDefinitions; use OCA\Files\Service\TagService; use OCA\Files\Service\UserConfig; use OCA\Files\Service\ViewConfig; @@ -46,6 +47,8 @@ use Psr\Log\LoggerInterface; use Throwable; /** + * @psalm-import-type FilesFolderTree from ResponseDefinitions + * * @package OCA\Files\Controller */ class ApiController extends Controller { @@ -265,7 +268,12 @@ class ApiController extends Controller { } /** - * Returns a folder tree for the user. + * Returns the folder tree of the user + * + * @return JSONResponse|JSONResponse + * + * 200: Folder tree returned successfully + * 401: Unauthorized */ #[NoAdminRequired] #[ApiRoute(verb: 'GET', url: '/api/v1/folder-tree')] -- cgit v1.2.3