v0.0.6
·
310 commits
to master
since this release
0.0.6 - 2020-06-16
Added
- Remote API requests now include the API version to be used.
- Enum for the different HTTP request methods.
- Mapping for the /search/series routes JSONs data.image property.
- Introduced new wrapper for some common @FunctionalInterface interfaces which allow a specific exception to be thrown during their execution.
- New util class
Preconditionsthat can be used to check certain requirements before executing some specific code. - Util methods in
APIUtilfor creating a more readable String-representation for Lists and Optionals. - Some more jsr305 annotations.
- New constant for slug query parameter in
Queryparameters class. - Some additional JavaDoc.
Changed
- Method
APIUtil.prettyPrint(JsonNode)now throws a more specific JsonProcessingException. - Small refactoring of API response JSON deserialization.
APINotAuthorizedExceptionis now a sub-type ofAPICommunicationException.- Re-enabled doclint setting in the JavaDoc maven plugin and added some configuration on how the output should look like.
- Full refactoring of method parameter and precondition checks. Removed many of the specific validator classes and consolidated parts of their functionality into two classes:
ParametersandPreconditions. - In order to reduce boilerplate code, the hardcoded API data model implementations have been replaced by some auto-generated code based on the Immutables library.
- Methods in
APIUtilnow return primitive boolean values. - Converted some validators to java.util.function.Predicate. Changed corresponding method signatures.
- Changed class name suffix for API data model implementations.
Fixed
- Fixed some unpleasant JavaDoc formatting.
Removed
- Removed
QueryResource.createQueryResource(String, QueryParameters)method. - Removed
APIValidationExceptionclass. Replaced by the newAPIPreconditionExceptionand java.lang.IllegalArgumentException. ConnectionValidatorhas been removed. Its functionality has been relocated intoPreconditionsclass.- Functionality of
PathValidator,QueryValidatorandObjectValidatorhas been consolidated into the newParametersclass.