WordPress at a glance
function is not described

rest_api_default_filters() WP 4.4.0

Registers the default REST API filters.

Attached to the 'rest_api_init' action to make testing and disabling these filters easier.

No Hooks.

Return

Nothing (null).

Usage

rest_api_default_filters();

Code of rest api default filters: wp-includes/rest-api.php VER 5.0.3

<?php
function rest_api_default_filters() {
	// Deprecated reporting.
	add_action( 'deprecated_function_run', 'rest_handle_deprecated_function', 10, 3 );
	add_filter( 'deprecated_function_trigger_error', '__return_false' );
	add_action( 'deprecated_argument_run', 'rest_handle_deprecated_argument', 10, 3 );
	add_filter( 'deprecated_argument_trigger_error', '__return_false' );

	// Default serving.
	add_filter( 'rest_pre_serve_request', 'rest_send_cors_headers' );
	add_filter( 'rest_post_dispatch', 'rest_send_allow_header', 10, 3 );
	add_filter( 'rest_post_dispatch', 'rest_filter_response_fields', 10, 3 );

	add_filter( 'rest_pre_dispatch', 'rest_handle_options_request', 10, 3 );
}