LOTR API
- API version: 1.0.0
- Build date: 2022-07-19T15:04:09.670Z[GMT]
You can use this api to retrieve lotr information.
Building the API client library requires:
- Java 18+
- Maven
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Add this dependency to your project's POM:
<dependency>
<groupId>org.liblab</groupId>
<artifactId>lord-of-the-rings-sdk</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "org.liblab:lord-of-the-rings-sdk:1.0.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/lord-of-the-rings-sdk-1.0.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import org.liblab.client.Configuration;
import org.liblab.client.api.LotrApi;
import org.liblab.client.model.*;
public class DefaultApiExample {
public static void main(String[] args) {
final var accessToken = "TOKEN";
final LotrApi api = new LotrApi(new Configuration().setAccessToken(accessToken));
try {
Book result = api.getBooks().getData().get(0);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBooks");
e.printStackTrace();
}
}
}
Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential
issues.
- Pagination
- limit
- page
- offset
- Sort
- Aggregate calls in a generic response data
- Publish mvnrepository