Skip to content

Commit

Permalink
feat(OpenAPI): Add ex_app scope
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Jul 2, 2024
1 parent 32de958 commit 355ef20
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"title": "core-administration",
"title": "core-ex_app",
"version": "0.0.1",
"description": "Core functionality of Nextcloud",
"license": {
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions lib/public/AppFramework/Http/Attribute/OpenAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,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,
Expand Down
11 changes: 6 additions & 5 deletions vendor-bin/openapi-extractor/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 355ef20

Please sign in to comment.