This project contains a reference implementation of Documentum REST Services client written in HTML5 + JavaScript code. The purpose of this project is to demonstrate one way to develop a hypermedia driven REST client to consume Documentum REST Services. It does NOT indicate that users could not develop a REST client using other technologies.
Opentext shares the source code of this project for the technology sharing. If users plan to migrate the sample code to their products, they are responsible to maintain this part of the code in their products and should agree with license polices of the referenced libraries used by this sample project.
This Documentum REST Services client is written with HTML5 + JavaScript. Underlying it leverages AngularJS and Bootstrap to communicate with Rest server and render the UI.
- Java 6 or 7 is installed for REST Services.
- Documentum REST Services 7.2 is deployed in the development environment.
- Tomcat or any other compliant web container for Documentum REST Services 7.2 is installed.
- Firefox, Chrome, IE are all supported. Firefox is recommended.
- Download the project files to your local storage.
- Put the project directory into the web container's deployment directory. Take Tomcat example,we need to adjust Tomcat's {tomcat_home}/server.xml file , adding a inside the element.
<Context path="/restapp" docBase="{source code root}/app" />
Please note that to avoid Cross-Origin Resource Sharaing (CORS) issues, Documentum REST Services and the HTML5 application are assumed to have the same host and port.
- Bounce Tomcat.
- You now should be able to access this app by entering the following into the browser's URI field http://demo-server:8080/restapp.
- If all goes well, you now should be prompted by the pop up dialog to enter Home Services URI (ie. http://demo-server:8080/dctm-rest/services.json) and user credentials - and hit OK.
- Again - if all goes well, you'll see progress feedback and then UI should be repainted with selection of Repositories exposed to the REST services.
- The resources of search, dql, batches are by temporary not supported.