Class Posts
- java.lang.Object
-
- org.gcube.social_networking.rest.collections.Collection
-
- org.gcube.social_networking.rest.collections.Posts
-
@Path("posts") public class Posts extends Collection
-
-
Constructor Summary
Constructors Constructor Description Posts()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsecreateComment(@NotNull String id, @NotNull org.gcube.social_networking.socialnetworking.model.shared.Comment comment)jakarta.ws.rs.core.ResponsecreateLike(@NotNull String id, @NotNull org.gcube.social_networking.socialnetworking.model.shared.Like like)jakarta.ws.rs.core.ResponsecreatePost(org.gcube.social_networking.socialnetworking.model.shared.PostWithAttachment postWithAttachment)jakarta.ws.rs.core.ResponsedeleteCommentOfPost(@NotNull String id, @NotNull String commentid)jakarta.ws.rs.core.ResponsedeletePost(@NotNull String id)jakarta.ws.rs.core.ResponsegetAttachmentsOfPost(@NotNull String id)jakarta.ws.rs.core.ResponsegetCommentsOfPost(@NotNull String id)jakarta.ws.rs.core.ResponsegetLikesOfPost(@NotNull String id)jakarta.ws.rs.core.ResponsereadPost(@NotNull String id)jakarta.ws.rs.core.ResponsereadPostsWithPrivacyLevel(String privacyLevel)jakarta.ws.rs.core.ResponseunlikePost(@NotNull String id, @NotNull String likeid)jakarta.ws.rs.core.ResponseupdatePost(@NotNull String id, @NotNull org.gcube.social_networking.socialnetworking.model.shared.Post post)-
Methods inherited from class org.gcube.social_networking.rest.collections.Collection
BatchCreateChildOfWithParameter, BatchDeleteChildOfWithParameter, BatchUpdateChildOf, check, checkChildOf, create, createChildOf, delete, deleteChildOf, deleteChildOfWithParameter, deleteWithParameter, read, readAll, readChildOf, readChildOfWithParameter, readWithParameter, update, updateChildOf, updateChildOfWithParameter, updateWithParameter
-
-
-
-
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)
-
-