Package com.steeplesoft.frenchpress.model

Examples of com.steeplesoft.frenchpress.model.MediaItem.toJson()


    @GET
    @Path("/id/{id}/")
    public Response getItem(@PathParam("id") Long id) {
        final MediaItem item = service.getItem(id);
        final JsonObject json = item.toJson()
                .add("_ref", uriInfo.getAbsolutePathBuilder().build().toString())
                .build();
        return Response.ok(json).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.