A simple Java standalone application using Spring 4 Rest template as REST Client. This example shows both synchronous and asynchronous REST clients options.
Jackson library is used for converting the JSON response.
Wiremock is used as the standalone mock HTTP Server providing the REST web service in JSON format.
- Java 1.8
- Maven
Run the AppMain.java class as a Java application
Execute the following command: mvn clean package