Interface CategoriesSPI
-
@Path("/wp") public interface CategoriesSPIDescribes the Categories Wordpress API- Since:
- 0.0.1
- See Also:
- Categories API Reference
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Categorycreate(String apiVersion, Category category)Categorydelete(String apiVersion, int categoryId, boolean force)List<Category>list(String apiVersion, Context context, Integer page, Integer perPage, String search, List<Integer> exclude, List<Integer> include, Order order, CategoryOrderBy orderBy, Boolean hideEmpty, Integer parent, Integer post, String slug)Categoryretrieve(String apiVersion, int categoryId, Context context)Categoryupdate(String apiVersion, int categoryId, Category category)
-
-
-
Method Detail
-
list
@GET @Path("/v{apiVersion}/categories") @Produces("application/json") List<Category> list(@PathParam("apiVersion") String apiVersion, @QueryParam("context") Context context, @QueryParam("page") Integer page, @QueryParam("per_page") Integer perPage, @QueryParam("search") String search, @QueryParam("exclude") List<Integer> exclude, @QueryParam("include") List<Integer> include, @QueryParam("order") Order order, @QueryParam("orderby") CategoryOrderBy orderBy, @QueryParam("hide_empty") Boolean hideEmpty, @QueryParam("parent") Integer parent, @QueryParam("post") Integer post, @QueryParam("slug") String slug)
-
retrieve
@GET @Path("/v{apiVersion}/categories/{id}") @Produces("application/json") Category retrieve(@PathParam("apiVersion") String apiVersion, @PathParam("id") int categoryId, @QueryParam("context") Context context)
-
create
@POST @Path("/v{apiVersion}/categories/") @Produces("application/json") @Consumes("application/json") Category create(@PathParam("apiVersion") String apiVersion, Category category)
-
update
@POST @Path("/v{apiVersion}/categories/{id}") @Produces("application/json") @Consumes("application/json") Category update(@PathParam("apiVersion") String apiVersion, @PathParam("id") int categoryId, Category category)
-
-