diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-01-19 12:48:50 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-01-19 12:48:50 +0100 |
commit | f2c9d04eac7c0875040b3e46cc1dccc7d290789f (patch) | |
tree | 79f2451221e2f7e2f92f163f9290130a8573ffb7 /apps | |
parent | 01d469dfea5c3a3db4ddd449b322f3f9f5ae98b9 (diff) | |
download | nextcloud-server-f2c9d04eac7c0875040b3e46cc1dccc7d290789f.tar.gz nextcloud-server-f2c9d04eac7c0875040b3e46cc1dccc7d290789f.zip |
test against OCS v2 instead
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Controller/ConfigAPIController.php | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/apps/user_ldap/lib/Controller/ConfigAPIController.php b/apps/user_ldap/lib/Controller/ConfigAPIController.php index 8aeb771608d..371ca899c26 100644 --- a/apps/user_ldap/lib/Controller/ConfigAPIController.php +++ b/apps/user_ldap/lib/Controller/ConfigAPIController.php @@ -76,7 +76,7 @@ class ConfigAPIController extends OCSController { * creates a new (empty) configuration and returns the resulting prefix * * Example: curl -X POST -H "OCS-APIREQUEST: true" -u $admin:$password \ - * https://nextcloud.server/ocs/v1.php/apps/user_ldap/api/v1/config + * https://nextcloud.server/ocs/v2.php/apps/user_ldap/api/v1/config * * results in: * @@ -84,10 +84,8 @@ class ConfigAPIController extends OCSController { * <ocs> * <meta> * <status>ok</status> - * <statuscode>100</statuscode> + * <statuscode>200</statuscode> * <message>OK</message> - * <totalitems></totalitems> - * <itemsperpage></itemsperpage> * </meta> * <data> * <configID>s40</configID> @@ -103,8 +101,6 @@ class ConfigAPIController extends OCSController { * <status>failure</status> * <statuscode>999</statuscode> * <message>An issue occurred when creating the new config.</message> - * <totalitems></totalitems> - * <itemsperpage></itemsperpage> * </meta> * <data/> * </ocs> @@ -131,7 +127,7 @@ class ConfigAPIController extends OCSController { * * Example: * curl -X DELETE -H "OCS-APIREQUEST: true" -u $admin:$password \ - * https://nextcloud.server/ocs/v1.php/apps/user_ldap/api/v1/config/s60 + * https://nextcloud.server/ocs/v2.php/apps/user_ldap/api/v1/config/s60 * * <?xml version="1.0"?> * <ocs> @@ -139,8 +135,6 @@ class ConfigAPIController extends OCSController { * <status>ok</status> * <statuscode>100</statuscode> * <message>OK</message> - * <totalitems></totalitems> - * <itemsperpage></itemsperpage> * </meta> * <data/> * </ocs> @@ -178,7 +172,7 @@ class ConfigAPIController extends OCSController { * Example: * curl -X PUT -d "key=ldapHost&value=ldaps://my.ldap.server" \ * -H "OCS-APIREQUEST: true" -u $admin:$password \ - * https://nextcloud.server/ocs/v1.php/apps/user_ldap/api/v1/config/s60 + * https://nextcloud.server/ocs/v2.php/apps/user_ldap/api/v1/config/s60 * * <?xml version="1.0"?> * <ocs> @@ -186,8 +180,6 @@ class ConfigAPIController extends OCSController { * <status>ok</status> * <statuscode>100</statuscode> * <message>OK</message> - * <totalitems></totalitems> - * <itemsperpage></itemsperpage> * </meta> * <data/> * </ocs> |