Reference v2 in the provider list
This commit is contained in:
parent
77ad9e98a9
commit
5d53fb4bc8
|
@ -44,9 +44,9 @@ class Provider extends \OCP\AppFramework\Controller {
|
||||||
'PRIVATE_DATA' => [
|
'PRIVATE_DATA' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'store' => '/ocs/v1.php/privatedata/setattribute',
|
'store' => '/ocs/v2.php/privatedata/setattribute',
|
||||||
'read' => '/ocs/v1.php/privatedata/getattribute',
|
'read' => '/ocs/v2.php/privatedata/getattribute',
|
||||||
'delete' => '/ocs/v1.php/privatedata/deleteattribute',
|
'delete' => '/ocs/v2.php/privatedata/deleteattribute',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -55,13 +55,13 @@ class Provider extends \OCP\AppFramework\Controller {
|
||||||
$services['SHARING'] = [
|
$services['SHARING'] = [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'share' => '/ocs/v1.php/apps/files_sharing/api/v1/shares',
|
'share' => '/ocs/v2.php/apps/files_sharing/api/v1/shares',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
$services['FEDERATED_SHARING'] = [
|
$services['FEDERATED_SHARING'] = [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'share' => '/ocs/v1.php/cloud/shares',
|
'share' => '/ocs/v2.php/cloud/shares',
|
||||||
'webdav' => '/public.php/webdav/',
|
'webdav' => '/public.php/webdav/',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -71,7 +71,7 @@ class Provider extends \OCP\AppFramework\Controller {
|
||||||
$services['ACTIVITY'] = [
|
$services['ACTIVITY'] = [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'list' => '/ocs/v1.php/cloud/activity',
|
'list' => '/ocs/v2.php/cloud/activity',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -80,9 +80,9 @@ class Provider extends \OCP\AppFramework\Controller {
|
||||||
$services['PROVISIONING'] = [
|
$services['PROVISIONING'] = [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'user' => '/ocs/v1.php/cloud/users',
|
'user' => '/ocs/v2.php/cloud/users',
|
||||||
'groups' => '/ocs/v1.php/cloud/groups',
|
'groups' => '/ocs/v2.php/cloud/groups',
|
||||||
'apps' => '/ocs/v1.php/cloud/apps',
|
'apps' => '/ocs/v2.php/cloud/apps',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,9 +60,9 @@ class OcsProviderTest extends \Test\TestCase {
|
||||||
'PRIVATE_DATA' => [
|
'PRIVATE_DATA' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'store' => '/ocs/v1.php/privatedata/setattribute',
|
'store' => '/ocs/v2.php/privatedata/setattribute',
|
||||||
'read' => '/ocs/v1.php/privatedata/getattribute',
|
'read' => '/ocs/v2.php/privatedata/getattribute',
|
||||||
'delete' => '/ocs/v1.php/privatedata/deleteattribute',
|
'delete' => '/ocs/v2.php/privatedata/deleteattribute',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
@ -94,22 +94,22 @@ class OcsProviderTest extends \Test\TestCase {
|
||||||
'PRIVATE_DATA' => [
|
'PRIVATE_DATA' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'store' => '/ocs/v1.php/privatedata/setattribute',
|
'store' => '/ocs/v2.php/privatedata/setattribute',
|
||||||
'read' => '/ocs/v1.php/privatedata/getattribute',
|
'read' => '/ocs/v2.php/privatedata/getattribute',
|
||||||
'delete' => '/ocs/v1.php/privatedata/deleteattribute',
|
'delete' => '/ocs/v2.php/privatedata/deleteattribute',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'FEDERATED_SHARING' => [
|
'FEDERATED_SHARING' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'share' => '/ocs/v1.php/cloud/shares',
|
'share' => '/ocs/v2.php/cloud/shares',
|
||||||
'webdav' => '/public.php/webdav/',
|
'webdav' => '/public.php/webdav/',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'SHARING' => [
|
'SHARING' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'share' => '/ocs/v1.php/apps/files_sharing/api/v1/shares',
|
'share' => '/ocs/v2.php/apps/files_sharing/api/v1/shares',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
@ -130,36 +130,36 @@ class OcsProviderTest extends \Test\TestCase {
|
||||||
'PRIVATE_DATA' => [
|
'PRIVATE_DATA' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'store' => '/ocs/v1.php/privatedata/setattribute',
|
'store' => '/ocs/v2.php/privatedata/setattribute',
|
||||||
'read' => '/ocs/v1.php/privatedata/getattribute',
|
'read' => '/ocs/v2.php/privatedata/getattribute',
|
||||||
'delete' => '/ocs/v1.php/privatedata/deleteattribute',
|
'delete' => '/ocs/v2.php/privatedata/deleteattribute',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'FEDERATED_SHARING' => [
|
'FEDERATED_SHARING' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'share' => '/ocs/v1.php/cloud/shares',
|
'share' => '/ocs/v2.php/cloud/shares',
|
||||||
'webdav' => '/public.php/webdav/',
|
'webdav' => '/public.php/webdav/',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'SHARING' => [
|
'SHARING' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'share' => '/ocs/v1.php/apps/files_sharing/api/v1/shares',
|
'share' => '/ocs/v2.php/apps/files_sharing/api/v1/shares',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'ACTIVITY' => [
|
'ACTIVITY' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'list' => '/ocs/v1.php/cloud/activity',
|
'list' => '/ocs/v2.php/cloud/activity',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'PROVISIONING' => [
|
'PROVISIONING' => [
|
||||||
'version' => 1,
|
'version' => 1,
|
||||||
'endpoints' => [
|
'endpoints' => [
|
||||||
'user' => '/ocs/v1.php/cloud/users',
|
'user' => '/ocs/v2.php/cloud/users',
|
||||||
'groups' => '/ocs/v1.php/cloud/groups',
|
'groups' => '/ocs/v2.php/cloud/groups',
|
||||||
'apps' => '/ocs/v1.php/cloud/apps',
|
'apps' => '/ocs/v2.php/cloud/apps',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue