Implements hateoas