use of br.com.caelum.vraptor.restfulie.hypermedia.ConfigurableHypermediaResource in project restfulie-java by caelum.
the class ItemsController method list.
@Get
@Path("/items")
public void list() {
ConfigurableHypermediaResource resource = restfulie.enhance(database.lista());
resource.relation("basket").uses(BasketsController.class).create(null);
result.use(representation()).from(resource, "items").serialize();
}
Aggregations