This application creates a fat jar which includes;
a GET endpoint (/) that returns
{
"message" : "hello world"
}
and
a POST endpoint (/) that
expects
{"name":"yourname", "surname":"yoursurname"}
returns
{"message":"Hello, yourname yoursurname"}
with 201 status
listening on port 8888
In order to create a fat jar package, install jdk >= 8 and Maven; afterwards, run this command:
mvn clean package
For running the app:
java -jar target/devoteam-helloworld-1.0-SNAPSHOT-fat.jar