Working example of a ReST API using Spring and JPA