wordpress-develop/tests/phpunit/tests/rest-api
Joe Hoyle f784a0481b REST API: Return error when JSON decoding fails.
If you send a request to the REST API with invalid JSON in body than it will now return a error. This assists developers if they accidentally send invalid JSON and wonder why their data appears to be ignored.

Props rmccue.
Fixes #38547.


git-svn-id: https://develop.svn.wordpress.org/trunk@39109 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 04:04:41 +00:00
..
rest-attachments-controller.php REST API: Support querying for multiple post statuses. 2016-11-03 01:45:48 +00:00
rest-categories-controller.php REST API: Clean-up our validation callbacks and add missing array items properties in our endpoint schemas. 2016-11-03 02:17:39 +00:00
rest-comments-controller.php REST API: Clean-up our validation callbacks and add missing array items properties in our endpoint schemas. 2016-11-03 02:17:39 +00:00
rest-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-pages-controller.php REST API: Clean-up our validation callbacks and add missing array items properties in our endpoint schemas. 2016-11-03 02:17:39 +00:00
rest-post-meta-fields.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-post-statuses-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-post-types-controller.php REST API: Include taxonomies as an attribute of post types. 2016-11-02 21:50:08 +00:00
rest-posts-controller.php REST API: Return a WP_Error when a user does not have permission to create or update a post with the provided terms. 2016-11-03 03:15:28 +00:00
rest-request-validation.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-request.php REST API: Return error when JSON decoding fails. 2016-11-03 04:04:41 +00:00
rest-revisions-controller.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-schema-sanitization.php REST API: Support querying for multiple post statuses. 2016-11-03 01:45:48 +00:00
rest-schema-validation.php REST API: Support querying for multiple post statuses. 2016-11-03 01:45:48 +00:00
rest-server.php REST API: Deprecate the rest_enabled filter. 2016-10-26 06:27:04 +00:00
rest-settings-controller.php REST API: Add support for "integer" type for meta and options 2016-10-31 16:06:54 +00:00
rest-tags-controller.php REST API: Clean-up our validation callbacks and add missing array items properties in our endpoint schemas. 2016-11-03 02:17:39 +00:00
rest-taxonomies-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-test-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-users-controller.php REST API: Clean-up our validation callbacks and add missing array items properties in our endpoint schemas. 2016-11-03 02:17:39 +00:00