From 38db3873a263974645ece09ed5677324f603f08c Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 15 Feb 2023 19:27:04 +0100 Subject: provisioning_api: Add OpenAPI spec Signed-off-by: jld3103 --- apps/provisioning_api/lib/Capabilities.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/provisioning_api/lib/Capabilities.php') diff --git a/apps/provisioning_api/lib/Capabilities.php b/apps/provisioning_api/lib/Capabilities.php index 614c20e66a8..3504868fcf3 100644 --- a/apps/provisioning_api/lib/Capabilities.php +++ b/apps/provisioning_api/lib/Capabilities.php @@ -3,6 +3,7 @@ * @copyright Copyright (c) 2021 Vincent Petry * * @author Vincent Petry + * @author Kate Döen * * @license GNU AGPL version 3 or any later version * @@ -37,6 +38,15 @@ class Capabilities implements ICapability { /** * Function an app uses to return the capabilities + * + * @return array{ + * provisioning_api: array{ + * version: string, + * AccountPropertyScopesVersion: int, + * AccountPropertyScopesFederatedEnabled: bool, + * AccountPropertyScopesPublishedEnabled: bool, + * }, + * } */ public function getCapabilities() { $federatedScopeEnabled = $this->appManager->isEnabledForUser('federation'); -- cgit v1.2.3