Examples of Alps


Examples of org.springframework.hateoas.alps.Alps

        String href = builder.path(mapping.getPath().toString()).build().toUriString();
        descriptors.add(Alps.descriptor().name(mapping.getRel()).href(href).build());
      }
    }

    Alps alps = Alps.alps().//
        descriptors(descriptors).//
        build();

    return new ResponseEntity<Alps>(alps, HttpStatus.OK);
  }
View Full Code Here

Examples of org.springframework.hateoas.alps.Alps

   * @see #141
   */
  @Test
  public void writesSampleDocument() throws Exception {

    Alps alps = alps().//
        doc(doc().href("http://example.org/samples/full/doc.html").build()). //
        descriptors(Arrays.asList(//
            descriptor().id("search").type(Type.SAFE).//
                doc(new Doc("A search form with two inputs.", Format.TEXT)).//
                descriptors(Arrays.asList( //
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.