From c6806684d2deee11b64fb8250064115cea291659 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 15 Feb 2023 19:22:09 +0100 Subject: files_sharing: Add OpenAPI spec Signed-off-by: jld3103 --- apps/files_sharing/lib/Capabilities.php | 62 +++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) (limited to 'apps/files_sharing/lib/Capabilities.php') diff --git a/apps/files_sharing/lib/Capabilities.php b/apps/files_sharing/lib/Capabilities.php index 8b1160aeb63..defeb517a01 100644 --- a/apps/files_sharing/lib/Capabilities.php +++ b/apps/files_sharing/lib/Capabilities.php @@ -8,6 +8,7 @@ * @author Roeland Jago Douma * @author Tobias Kaminsky * @author Vincent Petry + * @author Kate Döen * * @license AGPL-3.0 * @@ -50,6 +51,67 @@ class Capabilities implements ICapability { /** * Return this classes capabilities + * + * @return array{ + * files_sharing: array{ + * api_enabled: bool, + * public: array{ + * enabled: bool, + * password?: array{ + * enforced: bool, + * askForOptionalPassword: bool + * }, + * multiple_links?: bool, + * expire_date?: array{ + * enabled: bool, + * days?: int, + * enforced?: bool, + * }, + * expire_date_internal?: array{ + * enabled: bool, + * days?: int, + * enforced?: bool, + * }, + * expire_date_remote?: array{ + * enabled: bool, + * days?: int, + * enforced?: bool, + * }, + * send_mail?: bool, + * upload?: bool, + * upload_files_drop?: bool, + * }, + * user: array{ + * send_mail: bool, + * expire_date?: array{ + * enabled: bool, + * }, + * }, + * resharing: bool, + * group_sharing?: bool, + * group?: array{ + * enabled: bool, + * expire_date?: array{ + * enabled: bool, + * }, + * }, + * default_permissions?: int, + * federation: array{ + * outgoing: bool, + * incoming: bool, + * expire_date: array{ + * enabled: bool, + * }, + * expire_date_supported: array{ + * enabled: bool, + * }, + * }, + * sharee: array{ + * query_lookup_default: bool, + * always_show_unique: bool, + * }, + * }, + * } */ public function getCapabilities() { $res = []; -- cgit v1.2.3