A simple JPA CRUD example with JAX-RS endpoint
curl -X POST http://localhost:8080/api/person --header "Content-Type: application/json" -d "{\"name\":\"Gaurav Gupta\", \"address\":\"Lucknow, India\"}"
curl -X GET http://localhost:8080/api/person
curl -X GET http://localhost:8080/api/person/1
curl -X PUT http://localhost:8080/api/person --header "Content-Type: application/json" -d "{\"name\":\"Gaurav\", \"id\":1, \"address\":\"Lucknow, India\"}"
curl -X DELETE http://localhost:8080/api/person/1