diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-06-14 16:28:26 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-07-11 17:22:35 +0200 |
commit | bb1e73de9737dede61ae96081719ddf2e87a9bf2 (patch) | |
tree | 669b21b234627632ab653094b339109feb7a7e43 /apps/files_external/lib/Controller/ApiController.php | |
parent | a756600b915dcd9bab5338a610ade97d667edfe8 (diff) | |
download | nextcloud-server-bb1e73de9737dede61ae96081719ddf2e87a9bf2.tar.gz nextcloud-server-bb1e73de9737dede61ae96081719ddf2e87a9bf2.zip |
files_external: Add OpenAPI spec
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/files_external/lib/Controller/ApiController.php')
-rw-r--r-- | apps/files_external/lib/Controller/ApiController.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/files_external/lib/Controller/ApiController.php b/apps/files_external/lib/Controller/ApiController.php index 40539d0bbca..ed54837a9bd 100644 --- a/apps/files_external/lib/Controller/ApiController.php +++ b/apps/files_external/lib/Controller/ApiController.php @@ -30,13 +30,18 @@ declare(strict_types=1); namespace OCA\Files_External\Controller; use OCA\Files_External\Lib\StorageConfig; +use OCA\Files_External\ResponseDefinitions; use OCA\Files_External\Service\UserGlobalStoragesService; use OCA\Files_External\Service\UserStoragesService; +use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; use OCP\IRequest; use OCP\IUserSession; +/** + * @psalm-import-type FilesExternalMount from ResponseDefinitions + */ class ApiController extends OCSController { /** @var IUserSession */ @@ -66,7 +71,7 @@ class ApiController extends OCSController { * @param string $mountPoint mount point name, relative to the data dir * @param StorageConfig $mountConfig mount config to format * - * @return array entry + * @return FilesExternalMount */ private function formatMount(string $mountPoint, StorageConfig $mountConfig): array { // split path from mount point @@ -99,9 +104,9 @@ class ApiController extends OCSController { /** * @NoAdminRequired * - * Returns the mount points visible for this user. + * Get the mount points visible for this user * - * @return DataResponse share information + * @return DataResponse<Http::STATUS_OK, FilesExternalMount[], array{}> */ public function getUserMounts(): DataResponse { $entries = []; |