Using a lite weight framework like Java spark and unirest.io to consume rest APIs.
I'm on a Mac using Homebrew goodness...
• Java 1.8
brew cask install java
• Gradle
brew install gradle
- Clone it
git clone git@github.com:lendmeapound/unirest-example.git
- Get in it
cd unirest-example
- Build it
gradle build
- Run it
java -jar build/libs/unirest-example.jar
- Hit it http://localhost:4567
Java spark - For an awesome framework.
Project Lombok - No more getters and setters.
Apache Commons - Taking the pain out of string validation.
FasterXML - For the Jackson databind module.
GSON - Converting Java Objects into their JSON representation and back again.
unirest.io - Making java http client much easier!