A basic template to do rest api with hateoas