REST API using Java and Spring