By Keith Ecker
Add this dependency to your project's POM:
<dependency>
<groupId>io.github.keithjohn</groupId>
<artifactId>the-one-sdk</artifactId>
<version>1.0.0</version>
</dependency>
Once the POM file is updated you can run the following command to install the dependency
mvn clean install
Before getting started please follow the installation instructions
Once installed you can reference the API classes and methods for the desired request.
Get All Lord Of The Rings books
BookAPI bookAPI = new BookAPI();
List<Book> books = bookAPI.getAllBooks();
Get All Lord Of The Rings books sorted by name in descending order
BookAPI bookAPI = new BookAPI();
String sortParams = "sort=name:desc";
bookAPI.setAdditionalQueryParams(sortParams);
List<Book> books = bookAPI.getAllBooks();
Get All Lord Of The Rings books excluding The Two Towers
BookAPI bookAPI = new BookAPI();
String filterQueryParams = "name!=The Two Towers";
bookAPI.setAdditionalQueryParams(filterQueryParams);
List<Book> books = bookAPI.getAllBooks();