Simple Java API Wrapper
You are currently on the Simple Java API Wrapper documentation page.
About
Simple Java API Wrapper is a lightweight no dependency Java 11+ framework for wrapping APIs into developer-friendly maintainable classes.
Technically, it has a dependency, because there is implemented class GsonApiResponse
that will use GSON to deserialize API's JSON responses, however, you may not use this abstract class.
Skip to the installation...
Quick example
Here's an example worth of thousand words.
We have a class named
SomeApi
that contains methods for requesting the wrapped APIIn the class SomeApi we have a method named
#fetchSomething()
that will request the endpoint/v1/users/:userId
The API's response will be deserialized using GSON (
GsonApiResponse
)
Wrapper class
API Response class
Usage
Installation
Maven
Gradle
Latest version
You can find the latest version on the Maven Central Repository.
Eager to learn more?
Last updated