Class Posts


  • @Path("posts")
    public class Posts
    extends Collection
    • Constructor Detail

      • Posts

        public Posts()
    • Method Detail

      • createPost

        @POST
        @Path("/")
        @Consumes("application/json")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response createPost​(org.gcube.social_networking.socialnetworking.model.shared.PostWithAttachment postWithAttachment)
      • readPost

        @GET
        @Path("/{id}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response readPost​(@NotNull @PathParam("id")
                                                    @NotNull String id)
      • readPostsWithPrivacyLevel

        @GET
        @Path("")
        @Produces({"application/json;charset=UTF-8","application/vnd.api+json"})
        public jakarta.ws.rs.core.Response readPostsWithPrivacyLevel​(@QueryParam("privacy")
                                                                     String privacyLevel)
      • deletePost

        @DELETE
        @Path("/{id}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response deletePost​(@NotNull @PathParam("id")
                                                      @NotNull String id)
      • createComment

        @POST
        @Path("/{id}/comments")
        @Consumes("application/json")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response createComment​(@NotNull @PathParam("id")
                                                         @NotNull String id,
                                                         @NotNull
                                                         @NotNull org.gcube.social_networking.socialnetworking.model.shared.Comment comment)
      • getCommentsOfPost

        @GET
        @Path("/{id}/comments")
        @Produces({"application/json;charset=UTF-8","application/vnd.api+json"})
        public jakarta.ws.rs.core.Response getCommentsOfPost​(@NotNull @PathParam("id")
                                                             @NotNull String id)
      • deleteCommentOfPost

        @DELETE
        @Path("/{id}/comments/{commentid}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response deleteCommentOfPost​(@NotNull @PathParam("id")
                                                               @NotNull String id,
                                                               @NotNull @PathParam("commentid")
                                                               @NotNull String commentid)
      • createLike

        @POST
        @Path("/{id}/likes")
        @Consumes("application/json")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response createLike​(@NotNull @PathParam("id")
                                                      @NotNull String id,
                                                      @NotNull
                                                      @NotNull org.gcube.social_networking.socialnetworking.model.shared.Like like)
      • getLikesOfPost

        @GET
        @Path("/{id}/likes")
        @Produces({"application/json;charset=UTF-8","application/vnd.api+json"})
        public jakarta.ws.rs.core.Response getLikesOfPost​(@NotNull @PathParam("id")
                                                          @NotNull String id)
      • getAttachmentsOfPost

        @GET
        @Path("/{id}/attachments")
        @Produces({"application/json;charset=UTF-8","application/vnd.api+json"})
        public jakarta.ws.rs.core.Response getAttachmentsOfPost​(@NotNull @PathParam("id")
                                                                @NotNull String id)
      • updatePost

        @PUT
        @Path("/{id}")
        @Consumes("application/json")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response updatePost​(@NotNull @PathParam("id")
                                                      @NotNull String id,
                                                      @NotNull
                                                      @NotNull org.gcube.social_networking.socialnetworking.model.shared.Post post)
      • unlikePost

        @DELETE
        @Path("/{id}/likes/{likeid}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response unlikePost​(@NotNull @PathParam("id")
                                                      @NotNull String id,
                                                      @NotNull @PathParam("likeid")
                                                      @NotNull String likeid)