Yet another tmdb java api to access The Movie DB.
However this one is experimental and meant for usage in my personal projects so far. This means not all endpoints have been tested.
Two main approaches are used:
- the classes are autogenerated
- project aims at using minimal dependencies
- the schema is of the API is read
- a model for the whole api is created resolving references and traits (some fixes are applied)
- using codemodel and a custom restclient interface api methods, request types and response types are generated
- the project uses the native java 11 http client (which can be replaced by your own implementation)
- jackson is used for JSON reading and writing
- slf4j is used for logging
If you are looking for more finished java libraries for the tmdb API, have a look at the following projects:
- https://github.com/UweTrottmann/tmdb-java
- https://github.com/holgerbrandl/themoviedbapi
- https://github.com/Omertron/api-themoviedb
Also, there is a full and excellent documentation on the API.
Currently (=workaround), the api code can regernerated using the following command:
mvn compile exec:java
Future plans: Use a separate maven plugin in another repository to generate code (multi-module project doesn't allow a plugin from another module)