Commit Graph

32 Commits (781342159784956b16b0e88591701115ec13c46a)

Author SHA1 Message Date
Hammy 32068c4c55 Refactor deserialize & deserializeToList() methods
Making methods more readable through type signatures and how the method is being called within APIWrapper.java
3 years ago
Hammy 69c0ea55f3 Remove HttpClient from MyWaifuClient.java
MyWaifuClient should not have to pass in HttpClient into the APIWrapper, the httpClient is now managed by the APIWrapper
3 years ago
Hammy dfa05022e7 Add support for retrieving the current airing anime 3 years ago
Hammy 092d43172a Create APIMapper class 3 years ago
Hammy a10ac06fb2 Update documentation 3 years ago
Hammy 1f3ea2fc0c Rename MyWaifuWrapper.java to APIWrapper.java 3 years ago
Hammy 256341a88d Add support for retrieving series by ID 3 years ago
Hammy 2aaba3527f Add new exception class 3 years ago
Hammy 501233ddb3 Allow default no-args constructor
Jackson will be able to resolve errors if Studio has a name or whole Studio object is passed in. Please see this following post https://stackoverflow.com/questions/53191468/no-creators-like-default-construct-exist-cannot-deserialize-from-object-valu
3 years ago
Hammy 0b4afb2280 Update documentation & add new fields
The API was returning fields that were not specified in the API reference, Series.java has been updated to reflect the actual API response
3 years ago
Hammy 27868ca1e6 Update documentation & add new fields
The API was returning fields that were not specified in the API reference, the classes have been updated to reflect the actual API response
3 years ago
Hammy 7530afa182 Remove Appearance.java
This was a duplicate of the class FilteredSeries.java
3 years ago
Hammy 87360899f3 Update documentation 3 years ago
Hammy 18efcd679a Update documentation 3 years ago
Hammy e3d187d142 Implement basic functionality for Waifu endpoint 3 years ago
Hammy fc9bf53620 Add POJO for Result
A Result object is what the sendRequest() method will return to the helper methods within MyWaifuWrapper.java
3 years ago
Hammy 8471d7a5e3 Add POJO for Response
A Response<> object is what users will receive when interacting with MyWaifuClient.java
3 years ago
Hammy e6baaef299 Add new constructor with @JsonCreator annotation
As the API is inconsistent, the Studio object within the Waifu endpoint was returning a String, this implementation allows Jackson to instantiate the Studio class even if a String was returned
3 years ago
Hammy 6192b34204 Update documentation 3 years ago
Hammy 4fa583201e Update documentation 3 years ago
Hammy 6717c2cd8c Add CustomException Class APIResponseException.java
Throwing one single exception when catching many different ones within the sendRequest() method of MyWaifuWrapper.java
3 years ago
Hammy d734e76db8 (Unfinished) Testing API Retrieval 3 years ago
Hammy 69f4dab38e Update POJO's to better reflect API
The getWaifu endpoint disappointingly diverts from the API reference. Therefore changes to field names have been applied
3 years ago
Hammy 65689a7ee5 Add another POJO for JSON Entity
The getWaifu endpoint has a creator {} block that wasn't documented in the API Reference
3 years ago
Hammy 303083ff4b Make MyWaifuWrapper.java constructor private
Ensures that users/clients are not able to instantiate an instance of MyWaifuWrapper.java
3 years ago
Hammy 42e9ce4439 Make MyWaifuWrapper.java package private
To ensure that the downstream client/user cannot instantiate an instance of MyWaifuWrapper, it has been moved into the same package as MyWaifuClient
3 years ago
Hammy f81fb2b931 Make MyWaifuClient.java public 3 years ago
Hammy 3a68208465 Update JavaDocs
Make sure that we are not referencing generics within javadocs
3 years ago
Hammy 02d2dcfda3 Fix HTML Tags
Ensure that the HTML tags included are correctly used
3 years ago
Hammy 24c96183cf Add (Unfinished) MyWaifuWrapper.java
This class will be abstracted away from Users and perform the API processing in the background
3 years ago
Hammy 184327f723 Add Basic MyWaifuClient.java
This class will be the main entry point for Users who wish to use this wrapper
3 years ago
Hammy 6d71d60e28 Add API return entities as POJO'S 3 years ago