BP_REST_Friends_Endpoint
Friendship endpoints.
Description Description
/friends/ /friends/{id}
Source Source
File: bp-friends/classes/class-bp-rest-friends-endpoint.php
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |
Methods Methods
- __construct — Constructor.
- create_item — Create a new friendship.
- create_item_permissions_check — Check if a given request has access to create a friendship.
- delete_item — Reject/withdraw/remove friendship.
- delete_item_permissions_check — Check if a given request has access to delete a friendship.
- get_collection_params — Get the query params for friends collections.
- get_endpoint_args_for_item_schema — Edit some arguments for the endpoint's methods.
- get_friendship_object — Get friendship object.
- get_item — Retrieve single friendship.
- get_item_permissions_check — Check if a given request has access to get a friendship.
- get_item_schema — Get the friends schema, conforming to JSON Schema.
- get_items — Retrieve friendships.
- get_items_permissions_check — Check if a given request has access to friendship items.
- prepare_item_for_response — Prepares friendship data to return as an object.
- prepare_links — Prepare links for the request.
- register_routes — Register the component routes.
- update_item — Update, accept, friendship.
- update_item_permissions_check — Check if a given request has access to update a friendship.