Page 1 of 1

Export as zip API

PostPosted:Mon Dec 28, 2015 12:38 pm
by openkm_user
Hi,

There is an option to export folder as zip in OpenKM front-end, how do we do that through API?
Capture.JPG
Capture.JPG (17.15 KiB) Viewed 2852 times
Also is there any option to select multiple files inside a folder and download them (also API call)? Please help!

Thanks in advance!

Re: Export as zip API

PostPosted:Tue Dec 29, 2015 4:11 pm
by jllort
In community version the way for downloading folder as zip is calling:
/frontend/Download?uuid=XXXXX&export=true

Re: Export as zip API

PostPosted:Wed Dec 30, 2015 6:49 am
by openkm_user
Hi,

We are using,
http://wiki.openkm.com/index.php/RESTful_Guide
http://wiki.openkm.com/index.php/SDK_for_PHP_1.0.1

Single document download,
Code: Select all
$ curl -u okmAdmin:admin \
http://localhost:8080/OpenKM/services/rest/document/getContent?docId=58f79fa6-fe6e-4f68-8517-68a60898d122
How should we write in case we select multiple document in a folder and export them as zip?

Thanks for the prompt reply as usual!!

Re: Export as zip API

PostPosted:Thu Dec 31, 2015 5:39 pm
by jllort
Will not be a REST URL because we do not have a method in API, we only have a servlet call what's doing it on community version. The url should be:
Code: Select all
http://localhost:8080/OpenKM/frontend/Download?uuid=58f79fa6-fe6e-4f68-8517-68a60898d122