Requesting and downloading from RESTful API

client-development

#1

Hello Guys,

I'm trying to download files from the REST-API of owncloud. but I think that the API which I found in the internet is not actual. Because by trying to download a file via URL in the Browser always get redirected to my owncloud site.
And If I look at the Request which a get from the "Postman", it gives me a whole HTML-Site, but the files are not shown, because I get this message: "Access your files via webdav".
If i understood it right, the owncloud site loads the pictures with javascript via webdav.

Here is the Restful API, which I use to get the files: https://github.com/owncloud/gallery/wiki/RESTful-API

This link shows the SHARE API(I think it is not necessary for my request), which prodives just information about the filesystem in the oC as xml-format. https://doc.owncloud.org/server/8.2/developer_manual/core/ocs-share-api.html

I would appreciate any comments and help.

Thanks,
Kesking03


#2

There is no REST api for files. ownCloud is based on WebDAV.
Please use a webdav library and connect to http://example.com/remote.php/dav


#3

okay, do I have to download a owncloud Desktop Client?
and configure a WebDav Server or just connect to the server(I don't know how exactly)?


#4

Maybe this helps: https://doc.owncloud.org/server/10.0/user_manual/files/access_webdav.html


#5

thanks, it solved my problem bro.


#6

the roadmap of develop not have this feature on plans?


#7

No - we use webdav as our api. Webdav is an open standard for file access via http as well as syncing calendar and contacts.

Adding any additional api is out of scope