This is an example for Hammock.
git clone https://github.com/emag/hammock-practice.git
cd hammock-practice
mvn assembly:assembly
java -cp "target/hammock-practice-bin/hammock-practice/lib/*" org.jboss.weld.environment.se.StartMain
Now the API Server listen to 0.0.0.0:18080.
curl "localhost:18080/api/greetings/"
[{"id":1,"english":"Good Morning","japanese":"おはよう"},{"id":2,"english":"Hello","japanese":"こんにちは"},{"id":3,"english":"Good Evening","japanese":"こんばんは"}]%
curl "localhost:18080/api/greetings/2"
{"id":2,"english":"Hello","japanese":"こんにちは"}
curl "localhost:18080/api/greetings/echo?message=Hammock"
Hi, Hammock%