android-library icon indicating copy to clipboard operation
android-library copied to clipboard

About OCS requests and handlers

Open daorte opened this issue 7 years ago • 1 comments

Actual behaviour

  • Using Fiddler with new android 2.1.0, i can see there are new request to /owncloud/index.php/ocs/cloud/user?format=json with index.php acting as a handler of /ocs/cloud/user requests.

But, there are other requests to ocs like /owncloud/ocs/v1.php/cloud/capabilities?format=json and /owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares?path=/&reshares=true&subfiles=true that does not uses index.php as handler, these old ones uses v1.php.

Why not to use the same v1.php to handle /cloud/user requests or create a new handler inside ocs folder and get in one place all the ocs controllers?

Environment data

ownCloud app version: android 2.1.0

ownCloud server version: 9.1.0.15

daorte avatar Aug 26 '16 10:08 daorte

The functionality used with /owncloud/index.php/ocs/cloud/user?format=json is not already included in the User Provisioning API? https://doc.owncloud.org/server/9.1/admin_manual/configuration_user/user_provisioning_api.html

Why not to use this already existent API (with the /ocs/v1.php handler) like the shares functionality?

Regards,

daorte avatar Aug 29 '16 06:08 daorte

Outdated, closing here 🚀

JuancaG05 avatar May 30 '23 15:05 JuancaG05