Examples of PostRepresentation


Examples of chirp.service.representations.PostRepresentation

  @GET
  @Path("{timestamp}")
  @Produces(MediaType.APPLICATION_JSON)
  public PostRepresentation getPost(@PathParam("username") String username, @PathParam("timestamp") String timestamp) {
    Post post = userRepository.getUser(username).getPost(new Timestamp(timestamp));
    return new PostRepresentation(post, false);
  }
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.