@Path(value="/wp")
public interface PostsSPI
| Modifier and Type | Method and Description |
|---|---|
Post |
create(String apiVersion,
Post post) |
Post |
delete(String apiVersion,
int postId) |
DeletedModel<Post> |
forceDelete(String apiVersion,
int postId) |
List<Post> |
list(String apiVersion,
Context context,
Integer page,
Integer perPage,
String search,
Date after,
List<Integer> author,
List<Integer> authorExclude,
Date before,
List<Integer> exclude,
List<Integer> include,
List<Integer> offset,
Order order,
PostOrderBy orderBy,
List<String> slug,
PublishableStatus status,
List<String> categories,
List<String> categoriesExclude,
List<String> tags,
List<String> tagsExclude,
Boolean stick) |
Post |
retrieve(String apiVersion,
int postId,
Context context,
String password) |
Post |
update(String apiVersion,
int postId,
Post post) |
@GET
@Path(value="/v{apiVersion}/posts")
@Produces(value="application/json")
List<Post> 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="before")
Date before,
@QueryParam(value="exclude")
List<Integer> exclude,
@QueryParam(value="include")
List<Integer> include,
@QueryParam(value="offset")
List<Integer> offset,
@QueryParam(value="order")
Order order,
@QueryParam(value="orderby")
PostOrderBy orderBy,
@QueryParam(value="slug")
List<String> slug,
@QueryParam(value="status")
PublishableStatus status,
@QueryParam(value="categories")
List<String> categories,
@QueryParam(value="categories_exclude")
List<String> categoriesExclude,
@QueryParam(value="tags")
List<String> tags,
@QueryParam(value="tags_exclude")
List<String> tagsExclude,
@QueryParam(value="stick")
Boolean stick)
@GET
@Path(value="/v{apiVersion}/posts/{postId}")
@Produces(value="application/json")
Post retrieve(@PathParam(value="apiVersion")
String apiVersion,
@PathParam(value="postId")
int postId,
@QueryParam(value="context")
Context context,
@QueryParam(value="password")
String password)
@POST
@Path(value="/v{apiVersion}/posts")
@Produces(value="application/json")
@Consumes(value="application/json")
Post create(@PathParam(value="apiVersion")
String apiVersion,
Post post)
@POST
@Path(value="/v{apiVersion}/posts/{postId}")
@Produces(value="application/json")
@Consumes(value="application/json")
Post update(@PathParam(value="apiVersion")
String apiVersion,
@PathParam(value="postId")
int postId,
Post post)
@DELETE
@Path(value="/v{apiVersion}/posts/{postId}")
Post delete(@PathParam(value="apiVersion")
String apiVersion,
@PathParam(value="postId")
int postId)
@DELETE
@Path(value="/v{apiVersion}/posts/{postId}?force=true")
DeletedModel<Post> forceDelete(@PathParam(value="apiVersion")
String apiVersion,
@PathParam(value="postId")
int postId)
Apache Camel