Examples of RootDto


Examples of com.jayway.demo.library.rest.dto.RootDto

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).build();
    }
View Full Code Here

Examples of com.jayway.demo.library.rest.dto.RootDto

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();
  }
View Full Code Here

Examples of com.jayway.demo.library.rest.dto.RootDto

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).build();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.