Skip to content

Commit

Permalink
Merge pull request #1216 from nextcloud/backport/1215/stable0.7
Browse files Browse the repository at this point in the history
[stable0.7] fix(Capabilities): announce API 2.0
  • Loading branch information
blizzz authored Jul 18, 2024
2 parents f3b1025 + a5016b2 commit 01d5daa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public function getCapabilities(): array {
'enabled' => $this->appManager->isEnabledForUser('tables'),
'version' => $this->appManager->getAppVersion('tables'),
'apiVersions' => [
'1.0'
'1.0',
'2.0'
],
'features' => [
'favorite',
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/ContextController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
}

/**
* [api v3] Get all contexts available to the requesting person
* [api v2] Get all contexts available to the requesting person
*
* Return an empty array if no contexts were found
*
Expand Down
2 changes: 1 addition & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8048,7 +8048,7 @@
"/ocs/v2.php/apps/tables/api/2/contexts": {
"get": {
"operationId": "context-list",
"summary": "[api v3] Get all contexts available to the requesting person",
"summary": "[api v2] Get all contexts available to the requesting person",
"description": "Return an empty array if no contexts were found",
"tags": [
"context"
Expand Down
4 changes: 2 additions & 2 deletions src/types/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export type paths = {
};
"/ocs/v2.php/apps/tables/api/2/contexts": {
/**
* [api v3] Get all contexts available to the requesting person
* [api v2] Get all contexts available to the requesting person
* @description Return an empty array if no contexts were found
*/
get: operations["context-list"];
Expand Down Expand Up @@ -3026,7 +3026,7 @@ export type operations = {
};
};
/**
* [api v3] Get all contexts available to the requesting person
* [api v2] Get all contexts available to the requesting person
* @description Return an empty array if no contexts were found
*/
"context-list": {
Expand Down

0 comments on commit 01d5daa

Please sign in to comment.