[Owncloud] ownCloud 6 Rest API
Thomas Müller
thomas.mueller at tmit.eu
Wed Nov 13 15:21:35 UTC 2013
Hi,
I believe the WebDAV interface is sufficient as API for file/folder operations of any kind.
Maintaining a second API for the same feature doesn't make much sense from my point of view.
For sharing there is the OCS Share API which should allow you all operations which are necessary.
There is one more API called the provisioning api which takes care about operations around users and groups.
This API has been developed as an Enterprise feature and is only available in the Enterprise Edition.
Regarding versions there are no plans I'm aware of to build an API of any kind, but as this is related to
the scope of files I'd build this inside the WebDAV protocol space as well - maybe ;-)
Regards,
Thomas
Am Mittwoch, den 13.11.2013 um 15:56 schrieb Vaster Dev:
> Hi,
>
> I believe that there is -or will soon be- a great demand for a complete
> REST API that will allow developers to integrate core ownCloud
> functionality (like creating and sharing folders, uploading and deleting
> documents, registering a user or updating her details etc.) into their apps.
> Right now, there is an external OCS API which one can use to register his
> routes and expose some data from his app. However this requires writing an
> ownCloud app and doesn’t exist as an autonomous set of REST calls offered
> by ownCloud core.
> The only attempt on this direction is the OCS Share Api which gives access
> to file/folder sharing functionality from an external application. If
> someone wants to perform other types of operations on files & folders he
> will have to use webDav.
>
> First of all, am I missing something? Is the one I describe more or less
> the current situation?
> If yes, in my opinion, there is a great need for at least the following
> REST calls:
>
> - Create a user/group
> - Update user details
> - Insert/Delete/List user(s) from group(s)
> - Delete a user/group
> - Check if user/group exists (this route already exists for users)
> - List all users/groups
> - Get user/group information
> - List folders
> - List files inside a folder
> - Create a folder
> - Upload a file inside a folder
> - Delete a folder or a file
> - Move a folder or a file
> - Copy a folder or a file
> - Get shares of user/Get shares of a file or folder/Get
> info/Create/Update/Delete a share (already exists:
> http://doc.owncloud.org/server/5.0/deve
> ... e-api.html<http://doc.owncloud.org/server/5.0/developer_manual/core/ocs-share-api.html>-
> I believe “get all shares” method should change to get user login
> credentials as input)
> - Get version information of a file
> - Restore an older version of a file[/list][/list][/list]
>
> These are some calls I can think of off the top of my head. Is anyone
> working on this functionality? Are there any pitfalls/problems that
> wouldn’t allow someone to create those methods?
> If anyone has more ideas please contribute them here.
>
> Thanx!
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
More information about the Owncloud
mailing list