• Export as zip API

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #41129  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 2853 times
Also is there any option to select multiple files inside a folder and download them (also API call)? Please help!

Thanks in advance!
 #41139  by jllort
 
In community version the way for downloading folder as zip is calling:
/frontend/Download?uuid=XXXXX&export=true
 #41142  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!!
 #41152  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.