update hateoas to use data