Interface UsersSPI
@Path("/wp")
public interface UsersSPI
Describes the Users Wordpress API
- Since:
- 0.0.1
- See Also:
-
Method Details
-
list
@GET @Path("/v{apiVersion}/users") @Produces("application/json") List<User> 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("offset") List<Integer> offset, @QueryParam("order") Order order, @QueryParam("orderby") UserOrderBy orderBy, @QueryParam("slug") List<String> slug, @QueryParam("roles") List<String> roles) -
retrieve
-
create
-
update
-
delete
@DELETE @Path("/v{apiVersion}/users/{id}") DeletedModel<User> delete(@PathParam("apiVersion") String apiVersion, @PathParam("id") Integer id, @QueryParam("force") boolean force, @QueryParam("reassign") Integer reassignId) - Parameters:
apiVersion-id- Unique identifier for the user.force- Required to be true, as users do not support trashing.reassignId- Reassign the deleted user's posts and links to this user ID.
-