Spike/template for simple REST service using Dropwizard
mvn clean package
mvn clean test
java -jar target/boardy-0.0.1-SNAPSHOT.jar server boardy-app.yml
curl -H "Content-Type: application/json" -X POST -d '{"title":"my title", "content":"some content here", "sender": "me", "url": "http://foobar.com"}' http://localhost:8080/api/messages
Boardy message v1 (only json supported):
curl -H "Accept: application/json" -X GET http://localhost:8080/api/v1/messages
Boardy message v2 (json and xml supported)
curl -H "Accept: application/json" -X GET http://localhost:8080/api/v2/messages
or
curl -H "Accept: application/xml" -X GET http://localhost:8080/api/v2/messages