diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-04-08 21:46:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 21:46:55 +0200 |
commit | 5ddba78dc9920b766d38082826bb04556e5982a7 (patch) | |
tree | 49d784c858fcdc08f0521f698ccfa0f1fdf07f2b /lib | |
parent | ede541b4e764f8c2bfc193c0e031f0e8e69f63b9 (diff) | |
parent | f8ab422d81d9a331b5f60a7fc24f368088384d91 (diff) | |
download | nextcloud-server-5ddba78dc9920b766d38082826bb04556e5982a7.tar.gz nextcloud-server-5ddba78dc9920b766d38082826bb04556e5982a7.zip |
Merge pull request #44216 from nextcloud/feat/core/openapi-capabilities
feat(core): Include core capabilities in OpenAPI
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/OCS/CoreCapabilities.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/private/OCS/CoreCapabilities.php b/lib/private/OCS/CoreCapabilities.php index 0e9be3460ca..49e88b70ddd 100644 --- a/lib/private/OCS/CoreCapabilities.php +++ b/lib/private/OCS/CoreCapabilities.php @@ -42,12 +42,21 @@ class CoreCapabilities implements ICapability { /** * Return this classes capabilities + * + * @return array{ + * core: array{ + * pollinterval: int, + * webdav-root: string, + * reference-api: boolean, + * reference-regex: string, + * }, + * } */ public function getCapabilities(): array { return [ 'core' => [ - 'pollinterval' => $this->config->getSystemValue('pollinterval', 60), - 'webdav-root' => $this->config->getSystemValue('webdav-root', 'remote.php/webdav'), + 'pollinterval' => $this->config->getSystemValueInt('pollinterval', 60), + 'webdav-root' => $this->config->getSystemValueString('webdav-root', 'remote.php/webdav'), 'reference-api' => true, 'reference-regex' => IURLGenerator::URL_REGEX_NO_MODIFIERS, ], |