Wordpress/tests/qunit/fixtures
Timothy Jacobs 9defd1fabc REST API: Introduce support for batching API requests.
A new route is introduced, `batch/v1`, that accepts a list of API requests to run. Each request runs in sequence, and the responses are returned in the order they've been received.

Optionally, the `require-all-validate` validation mode can be used to first validate each request's parameters and only proceed with processing if each request validates successfully.

By default, the batch size is limited to 25 requests. This can be controlled using the `rest_get_max_batch_size` filter. Clients are strongly encouraged to discover the maximum batch size supported by the server by making an OPTIONS request to the `batch/v1` endpoint and inspecting the described arguments.

Additionally, the two new methods, `match_request_to_handler` and `respond_to_request` introduced in [48947] now have a `protected` visibility as we don't want to expose the inner workings of the `WP_REST_Server::dispatch` API.

Batching is not currently supported for GET requests.

Fixes #50244.
Props andraganescu, zieladam, TimothyBlynJacobs.


git-svn-id: https://develop.svn.wordpress.org/trunk@49252 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-20 19:08:48 +00:00
..
common.js I18N: Use wp.i18n for translatable strings in wp-admin/js/dashboard.js. 2020-10-14 21:11:09 +00:00
customize-header.js Add PHP and JS unit tests for custom headers. 2014-03-29 10:05:22 +00:00
customize-menus.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
customize-settings.js Customize: Add changeset locking in Customizer to prevent users from overriding each other's changes. 2017-10-12 04:00:15 +00:00
customize-widgets.js Customize: Improve i18n for strings in hidden widget area notices. 2017-03-24 22:02:02 +00:00
js-widgets-endpoint.js REST API: JS client - QUnit tests for custom namespace route discovery. 2017-02-24 18:39:39 +00:00
updates.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
wp-api-generated.js REST API: Introduce support for batching API requests. 2020-10-20 19:08:48 +00:00
wp-api.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00