This iOS project contains a reference implementation of Documentum REST Services client written in Swift 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 codes to their products, they are responsible to maintain this part of the codes 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 Swift code. This project is organized by CocoaPods.
- Documentum REST Services 7.3 is deployed in the development environment.
- iOS 10.x SDK is installed.
- Xcode is recommended as the IDE to compile, build and run this project.
Open the terminal in Mac OSX and run below command to install the latest ruby
(>= 2.2.2).
$ brew install ruby
Run below command to install CocoaPods
.
$ sudo gem install cocoapods
-
Download the project into your local workspace.
-
Open the terminal and navigate to the project directory which contains the file
Podfile
.
$ cd documentum-rest-client-swift/SwiftClient
- Run below command to install all dependency libraries for this project.
$ pod install
-
Double click on the project file
RestClient.xcworkspace
to open the project ascocoapods
project structure. -
Find the configuration file
database.db
under locationdocumentum-rest-client-swift/SwiftClient
.
- It contains the default connection parameters for Documentum REST Services access.
- You can change the default values to accommodate to your Documentum REST Services deployment.
- You can also manually fill the connection parameters in the test launcher.
- Build the project with Xcode by clicking the Build button or pressing ⌘R on the IDE to launch the test.