Routee Java SDK
Routee JAVA SDK provides the necessary classes to communicate with Routee Services in Java. It currently supports all of the services offered by the Routee:
- Two Step Verification
Routee Java SDK uses a number of open source projects to work properly:
- [OKHttp] - An HTTP & HTTP/2 client for Java Applications - We use it to communicate with Routee REST API.
- [JSON] - JSON Parser to convert responses from Routee API to JAVA Objects and vice versa
- [Maven] - We use maven build system
- [JUnit] - We use JUnit for unit testing the code - Tests have been written for the entire SDK.
You can either build the jar from source or use the existing jar included in the repository (RouteeJavaSDK.jar).
To use the jar, simply include the jar file into your project, and add it to your build path. You'd then need to export the classes that you want to use.
To Build from Source:
We use Maven build system, you can generate jar by using the following commands:
Simply go into SDK Directory (RouteeJavaSDK), and run the following commands
$ mvn dependency:resolve $ mvn -Dmaven.test.skip=true install
First command is used to get all the dependencies for the project (OKHttp,JSON,JUnit). Second command will build the jar file from source code (The jar file will be located in target folder).
Unit Tests have been written in JUnit for the SDK. To run the tests, simply type
$ mvn tests
You'll need to setup the test environment variables to run the test suite. You can do so by modifying src/test/java/net/routee/TestConfiguraiton.Java file.
I would love to have your helping hand on Routee Java SDK! I have followed Google Java Style Guide, so please follow the Style Guide if you're interested in contributing to the project :)
Documentation for the SDK is available at Routee Java SDK Documentation Repo