public class LibraryResource {
@GET
@Produces("application/vnd.demo.library.root+json")
public Response root() {
return HateoasResponse.ok(new RootDto())
.link(LinkableIds.BOOKS_LIST_ID, Rels.BOOKS)
.link(LinkableIds.CUSTOMER_LIST_ID, Rels.CUSTOMERS)
.link(LinkableIds.LOANS_LIST_ID, Rels.LOANS)
.link(LinkableIds.SEARCH_ITEM_ID, Rels.SEARCH, "foo").build();
}