Interface CommentsSPI


  • @Path("/wp")
    public interface CommentsSPI
    Describes the Wordpress Comments API.
    Since:
    0.0.1
    See Also:
    Comments API Reference
    • Method Detail

      • list

        @GET
        @Path("/v{apiVersion}/comments")
        @Produces("application/json")
        List<Comment> list​(@PathParam("apiVersion")
                           String apiVersion,
                           @QueryParam("context")
                           Context context,
                           @QueryParam("page")
                           Integer page,
                           @QueryParam("per_page")
                           Integer perPage,
                           @QueryParam("search")
                           String search,
                           @QueryParam("after")
                           Date after,
                           @QueryParam("author")
                           List<Integer> author,
                           @QueryParam("author_exclude")
                           List<Integer> authorExclude,
                           @QueryParam("author_email")
                           String authorEmail,
                           @QueryParam("before")
                           Date before,
                           @QueryParam("exclude")
                           List<Integer> exclude,
                           @QueryParam("include")
                           List<Integer> include,
                           @QueryParam("karma")
                           Integer karma,
                           @QueryParam("offset")
                           List<Integer> offset,
                           @QueryParam("order")
                           Order order,
                           @QueryParam("orderby")
                           CommentOrderBy orderBy,
                           @QueryParam("parent")
                           List<Integer> parent,
                           @QueryParam("parent_exclude")
                           List<Integer> parentExclude,
                           @QueryParam("post")
                           List<Integer> post,
                           @QueryParam("status")
                           CommentStatus status,
                           @QueryParam("type")
                           String type)
      • retrieve

        @GET
        @Path("/v{apiVersion}/comments/{id}")
        @Produces("application/json")
        Comment retrieve​(@PathParam("apiVersion")
                         String apiVersion,
                         @PathParam("id")
                         Integer id,
                         @QueryParam("context")
                         Context context)
      • create

        @POST
        @Path("/v{apiVersion}/comments")
        @Produces("application/json")
        @Consumes("application/json")
        Comment create​(@PathParam("apiVersion")
                       String apiVersion,
                       Comment comment)
      • update

        @POST
        @Path("/v{apiVersion}/comments/{id}")
        @Produces("application/json")
        @Consumes("application/json")
        Comment update​(@PathParam("apiVersion")
                       String apiVersion,
                       @PathParam("id")
                       int id,
                       Comment post)
      • delete

        @DELETE
        @Path("/v{apiVersion}/comments/{id}")
        Comment delete​(@PathParam("apiVersion")
                       String apiVersion,
                       @PathParam("id")
                       int id,
                       @QueryParam("force")
                       boolean force)