@Path(value="posts")
public interface PostsResource
Modifier and Type | Method and Description |
---|---|
void |
addComment(String post_id,
Comment comment) |
void |
flagCategory(String post_id,
PostCategoryCode postcategorycode) |
void |
followPost(String post_id,
IsFollowing isfollowing) |
Post |
getPost(String post_id,
Long count,
Long start,
String fields) |
Comments |
getPostComments(String post_id,
Long count,
Long start,
String fields) |
void |
likePost(String post_id,
IsLiked isliked) |
void |
removePost(String post_id) |
@GET @Produces(value="application/xml") @Path(value="/{post-id}{fields}") Post getPost(@PathParam(value="post-id") String post_id, @QueryParam(value="count") Long count, @QueryParam(value="start") Long start, @PathParam(value="fields") String fields)
@PUT @Consumes(value="application/xml") @Path(value="/{post-id}/relation-to-viewer/is-liked") void likePost(@PathParam(value="post-id") String post_id, IsLiked isliked)
@PUT @Consumes(value="application/xml") @Path(value="/{post-id}/relation-to-viewer/is-following") void followPost(@PathParam(value="post-id") String post_id, IsFollowing isfollowing)
@PUT @Consumes(value="application/xml") @Path(value="/{post-id}/category/code") void flagCategory(@PathParam(value="post-id") String post_id, PostCategoryCode postcategorycode)
@DELETE @Path(value="/{post-id}") void removePost(@PathParam(value="post-id") String post_id)
@GET @Produces(value="application/xml") @Path(value="/{post-id}/comments{fields}") Comments getPostComments(@PathParam(value="post-id") String post_id, @QueryParam(value="count") Long count, @QueryParam(value="start") Long start, @PathParam(value="fields") String fields)
Apache Camel