aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-07-02 09:12:48 +0200
committerprovokateurin <kate@provokateurin.de>2024-07-02 09:12:48 +0200
commit355ef202e481f2a0a3d11abc8f6c488bbc8468d6 (patch)
tree591cbacf5af79b558cba392518019a76baf4130b /lib/public
parent32de9582594e8cde172846684e9874cf10ba7099 (diff)
downloadnextcloud-server-355ef202e481f2a0a3d11abc8f6c488bbc8468d6.tar.gz
nextcloud-server-355ef202e481f2a0a3d11abc8f6c488bbc8468d6.zip
feat(OpenAPI): Add ex_app scope
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/Attribute/OpenAPI.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/Attribute/OpenAPI.php b/lib/public/AppFramework/Http/Attribute/OpenAPI.php
index e996bffd917..26d01937cfb 100644
--- a/lib/public/AppFramework/Http/Attribute/OpenAPI.php
+++ b/lib/public/AppFramework/Http/Attribute/OpenAPI.php
@@ -51,6 +51,14 @@ class OpenAPI {
public const SCOPE_IGNORE = 'ignore';
/**
+ * APIs used by ExApps.
+ * Will be set automatically when an ExApp is required to access the route.
+ *
+ * @since 30.0.0
+ */
+ public const SCOPE_EX_APP = 'ex_app';
+
+ /**
* @param self::SCOPE_*|string $scope Scopes are used to define different clients.
* It is recommended to go with the scopes available as self::SCOPE_* constants,
* but in exotic cases other APIs might need documentation as well,