RESTful API with JAX-RS