@Path(value="/wp")
public interface CommentsSPI
| Modifier and Type | Method and Description |
|---|---|
Comment |
create(String apiVersion,
Comment comment) |
Comment |
delete(String apiVersion,
int id,
boolean force) |
List<Comment> |
list(String apiVersion,
Context context,
Integer page,
Integer perPage,
String search,
Date after,
List<Integer> author,
List<Integer> authorExclude,
String authorEmail,
Date before,
List<Integer> exclude,
List<Integer> include,
Integer karma,
List<Integer> offset,
Order order,
CommentOrderBy orderBy,
List<Integer> parent,
List<Integer> parentExclude,
List<Integer> post,
CommentStatus status,
String type) |
Comment |
retrieve(String apiVersion,
Integer id,
Context context) |
Comment |
update(String apiVersion,
int id,
Comment post) |
@GET
@Path(value="/v{apiVersion}/comments")
@Produces(value="application/json")
List<Comment> list(@PathParam(value="apiVersion")
String apiVersion,
@QueryParam(value="context")
Context context,
@QueryParam(value="page")
Integer page,
@QueryParam(value="per_page")
Integer perPage,
@QueryParam(value="search")
String search,
@QueryParam(value="after")
Date after,
@QueryParam(value="author")
List<Integer> author,
@QueryParam(value="author_exclude")
List<Integer> authorExclude,
@QueryParam(value="author_email")
String authorEmail,
@QueryParam(value="before")
Date before,
@QueryParam(value="exclude")
List<Integer> exclude,
@QueryParam(value="include")
List<Integer> include,
@QueryParam(value="karma")
Integer karma,
@QueryParam(value="offset")
List<Integer> offset,
@QueryParam(value="order")
Order order,
@QueryParam(value="orderby")
CommentOrderBy orderBy,
@QueryParam(value="parent")
List<Integer> parent,
@QueryParam(value="parent_exclude")
List<Integer> parentExclude,
@QueryParam(value="post")
List<Integer> post,
@QueryParam(value="status")
CommentStatus status,
@QueryParam(value="type")
String type)
@GET
@Path(value="/v{apiVersion}/comments/{id}")
@Produces(value="application/json")
Comment retrieve(@PathParam(value="apiVersion")
String apiVersion,
@PathParam(value="id")
Integer id,
@QueryParam(value="context")
Context context)
@POST
@Path(value="/v{apiVersion}/comments")
@Produces(value="application/json")
@Consumes(value="application/json")
Comment create(@PathParam(value="apiVersion")
String apiVersion,
Comment comment)
@POST
@Path(value="/v{apiVersion}/comments/{id}")
@Produces(value="application/json")
@Consumes(value="application/json")
Comment update(@PathParam(value="apiVersion")
String apiVersion,
@PathParam(value="id")
int id,
Comment post)
Apache Camel