Class Posts


  • @Path("2/posts")
    public class Posts
    extends Object
    REST interface for the social networking library (posts).
    • Constructor Detail

      • Posts

        public Posts()
    • Method Detail

      • getRecentPostsByUserAndDate

        @GET
        @Path("get-posts-user-since/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getRecentPostsByUserAndDate​(@QueryParam("time") @Min(value=0L,message="time cannot be negative")
                                                                     long timeInMillis)
                                                              throws javax.validation.ValidationException
        Throws:
        javax.validation.ValidationException
      • getAllPostsByUser

        @GET
        @Path("get-posts-user/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllPostsByUser()
      • getQuantityPostsByUser

        @GET
        @Path("get-posts-user-quantity/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getQuantityPostsByUser​(@DefaultValue("10") @QueryParam("quantity") @Min(value=0L,message="quantity cannot be negative")
                                                                int quantity)
                                                         throws javax.validation.ValidationException
        Throws:
        javax.validation.ValidationException
      • writePostUser

        @POST
        @Path("write-post-user")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response writePostUser​(@NotNull(message="Post to write is missing")
                                                       PostInputBean post)
                                                throws javax.validation.ValidationException
        Throws:
        javax.validation.ValidationException
      • getAllPostsByApp

        @GET
        @Path("get-posts-app/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllPostsByApp()
      • writePostApp

        @POST
        @Path("write-post-app")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response writePostApp​(@NotNull(message="Post to write is null")
                                                      PostInputBean post)
      • getAllPostsByVRE

        @GET
        @Path("get-posts-vre/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllPostsByVRE()
      • getPostsByHashTags

        @GET
        @Path("get-posts-by-hashtag/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPostsByHashTags​(@QueryParam("hashtag") @NotNull(message="hashtag cannot be missing")
                                                            String hashtag)
                                                     throws javax.validation.ValidationException
        Throws:
        javax.validation.ValidationException
      • getAllLikedPostIdsByUser

        @GET
        @Path("get-id-liked-posts/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllLikedPostIdsByUser()
      • getAllLikedPostsByUser

        @GET
        @Path("get-liked-posts/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllLikedPostsByUser​(@DefaultValue("10") @QueryParam("limit") @Min(message="limit cannot be negative",value=0L)
                                                                int limit)
                                                         throws javax.validation.ValidationException
        Throws:
        javax.validation.ValidationException