Added hateoas support