WordPress at a glance
filter is not described

rest_endpoints filter-hook . WP 4.4.0

Filters the array of available endpoints.

Usage

add_filter( 'rest_endpoints', 'filter_function_name_6461' );
function filter_function_name_6461( $endpoints ){
	// filter...

	return $endpoints;
}
$endpoints(array)
The available endpoints. An array of matching regex patterns, each mapped to an array of callbacks for the endpoint. These take the format '/path/regex' => array( $callback, $bitmask ) or `'/path/regex' => array( array( $callback, $bitmask ).

Where the hook is called

WP_REST_Server::get_routes()
rest_endpoints
wp-includes/rest-api/class-wp-rest-server.php 714
$endpoints = apply_filters( 'rest_endpoints', $this->endpoints );

Where the hook is used (in WP core)

Does not used.