- Learn how to unit test all this stuff, then you can do it for real
mvn jetty:run
./debug-jetty.sh
Connect to port 4000 as a remote application
GET http://localhost:8080/primavera/booksearch/authors.xml
GET http://localhost:8080/primavera/booksearch/books.json
{
"isbn": "asdfghjkl",
"title": "Thiago Caiubi",
"edition": 1234,
"pages": 23,
"published": "SCCP 1910",
"authors": [
{
"authorId": "QWERTYUIOP",
"name": "Thiago Caiubi",
"email": "thiago.caubi@xpto.com"
}
],
"publisher": {
"name": "Thiago Caiubi",
"address": {
"address": "Rua da Praia, 1",
"city": "Florianópolis",
"state": "SC",
"zip": "04525-023"
}
}
The base of this project was extract from http://www.stupidjavatricks.com/?p=54