Make WordPress Core

Ticket #39264: 39264.10.diff

File 39264.10.diff, 244.2 KB (added by adamsilverstein, 8 years ago)
  • Gruntfile.js

     
    678678
    679679        grunt.registerTask( 'restapi-jsclient', [
    680680                'phpunit:restapi-jsclient',
    681                 'qunit'
     681                'qunit:compiled'
    682682        ] );
    683683
    684684        grunt.renameTask( 'watch', '_watch' );
  • tests/phpunit/tests/rest-api/rest-post-meta-fields.php

     
    1010  * @group restapi
    1111  */
    1212class WP_Test_REST_Post_Meta_Fields extends WP_Test_REST_TestCase {
     13        protected static $wp_meta_keys_saved;
    1314        protected static $post_id;
    1415
    1516        public static function wpSetUpBeforeClass( $factory ) {
     17                self::$wp_meta_keys_saved = $GLOBALS['wp_meta_keys'];
    1618                self::$post_id = $factory->post->create();
    1719        }
    1820
    1921        public static function wpTearDownAfterClass() {
     22                $GLOBALS['wp_meta_keys'] = self::$wp_meta_keys_saved;
    2023                wp_delete_post( self::$post_id, true );
    2124        }
    2225
  • tests/phpunit/tests/rest-api/rest-schema-setup.php

     
    7474        }
    7575
    7676        public function test_build_wp_api_client_fixtures() {
    77                 // Set up for testing the individual endpoints.
    78                 // Set a current admin user.
    79                 $administrator = $this->factory->user->create( array(
    80                         'role' => 'administrator',
     77                // Set up data for individual endpoint responses.  We need to specify
     78                // lots of different fields on these objects, otherwise the generated
     79                // fixture file will be different between runs of PHPUnit tests, which
     80                // is not desirable.
     81
     82                $administrator_id = $this->factory->user->create( array(
     83                        'role'          => 'administrator',
     84                        'display_name'  => 'REST API Client Fixture: User',
     85                        'user_nicename' => 'restapiclientfixtureuser',
     86                        'user_email'    => 'administrator@example.org',
    8187                ) );
    82                 wp_set_current_user( $administrator );
     88                wp_set_current_user( $administrator_id );
    8389
    84                 // Set up data for endpoints.
    85                 $post_id  = $this->factory->post->create();
    86                 $page_id  = $this->factory->post->create( array( 'post_type' => 'page' ) );
    87                 $tag_id   = $this->factory->tag->create( array( 'name' => 'test' ) );
     90                $post_id = $this->factory->post->create( array(
     91                        'post_name'      => 'restapi-client-fixture-post',
     92                        'post_title'     => 'REST API Client Fixture: Post',
     93                        'post_content'   => 'REST API Client Fixture: Post',
     94                        'post_excerpt'   => 'REST API Client Fixture: Post',
     95                        'post_author'    => 0,
     96                ) );
     97                wp_update_post( array(
     98                        'ID'           => $post_id,
     99                        'post_content' => 'Updated post content.',
     100                ) );
     101
     102                $page_id = $this->factory->post->create( array(
     103                        'post_type'      => 'page',
     104                        'post_name'      => 'restapi-client-fixture-page',
     105                        'post_title'     => 'REST API Client Fixture: Page',
     106                        'post_content'   => 'REST API Client Fixture: Page',
     107                        'post_excerpt'   => 'REST API Client Fixture: Page',
     108                        'post_date'      => '2017-02-14 00:00:00',
     109                        'post_date_gmt'  => '2017-02-14 00:00:00',
     110                        'post_author'    => 0,
     111                ) );
     112                wp_update_post( array(
     113                        'ID'           => $page_id,
     114                        'post_content' => 'Updated page content.',
     115                ) );
     116
     117                $tag_id = $this->factory->tag->create( array(
     118                        'name'        => 'REST API Client Fixture: Tag',
     119                        'slug'        => 'restapi-client-fixture-tag',
     120                        'description' => 'REST API Client Fixture: Tag',
     121                ) );
     122
    88123                $media_id = $this->factory->attachment->create_object( '/tmp/canola.jpg', 0, array(
    89124                        'post_mime_type' => 'image/jpeg',
    90125                        'post_excerpt'   => 'A sample caption',
     126                        'post_name'      => 'restapi-client-fixture-attachment',
     127                        'post_title'     => 'REST API Client Fixture: Attachment',
     128                        'post_date'      => '2017-02-14 00:00:00',
     129                        'post_date_gmt'  => '2017-02-14 00:00:00',
     130                        'post_author'    => 0,
    91131                ) );
    92                 wp_update_post( array( 'post_content' => 'Updated content.', 'ID' => $post_id ) );
    93                 wp_update_post( array( 'post_content' => 'Updated content.', 'ID' => $page_id ) );
     132
    94133                $comment_id = $this->factory->comment->create( array(
    95                         'comment_approved' => 1,
    96                         'comment_post_ID'  => $post_id,
    97                         'user_id'          => 0,
     134                        'comment_approved'     => 1,
     135                        'comment_post_ID'      => $post_id,
     136                        'user_id'              => 0,
     137                        'comment_date'         => '2017-02-14 00:00:00',
     138                        'comment_date_gmt'     => '2017-02-14 00:00:00',
     139                        'comment_author'       => 'Internet of something or other',
     140                        'comment_author_email' => 'lights@example.org',
     141                        'comment_author_url'   => 'http://lights.example.org/',
    98142                ) );
    99143
    100144                // Generate route data for subsequent QUnit tests.
     
    196240                                'name'  => 'UsersCollection',
    197241                        ),
    198242                        array(
    199                                 'route' => '/wp/v2/users/1',
     243                                'route' => '/wp/v2/users/' . $administrator_id,
    200244                                'name'  => 'UserModel',
    201245                        ),
    202246                        array(
     
    217261                        ),
    218262                );
    219263
    220                 // Set up the mocked response and tell jshint to ignore the single quote json objects
    221                 $mocked_responses = "/*jshint -W109 */\n\nvar mockedApiResponse = {};\n\n";
    222                 $mocked_responses .= "/**\n";
     264                $mocked_responses = "/**\n";
    223265                $mocked_responses .= " * DO NOT EDIT\n";
    224266                $mocked_responses .= " * Auto-generated by test_build_wp_api_client_fixtures\n";
    225267                $mocked_responses .= " */\n";
     268                $mocked_responses .= "var mockedApiResponse = {};\n";
     269                $mocked_responses .= "/* jshint -W109 */\n";
    226270
    227271                foreach ( $routes_to_generate_data as $route ) {
    228272                        $request = new WP_REST_Request( 'GET', $route['route'] );
     
    231275
    232276                        $this->assertTrue( ! empty( $data ), $route['name'] . ' route should return data.' );
    233277
    234                         $mocked_responses .= 'mockedApiResponse.' . $route['name'] . ' = ' . wp_json_encode( $data ) . ";\n\n";
     278                        $fixture = $this->normalize_fixture( $data, $route['name'] );
     279                        $mocked_responses .= "\nmockedApiResponse." . $route['name'] . ' = '
     280                                . json_encode( $fixture, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES )
     281                                . ";\n";
    235282                }
    236283
    237284                // Save the route object for QUnit tests.
     
    245292                wp_delete_attachment( $media_id );
    246293                wp_delete_comment( $comment_id );
    247294        }
     295
     296        /**
     297         * This array contains normalized versions of object IDs and other values
     298         * that can change depending on how PHPUnit is executed.  For details on
     299         * how they were generated, see #39264.
     300         */
     301        private static $fixture_replacements = array(
     302                'PostsCollection.0.id' => 3,
     303                'PostsCollection.0.guid.rendered' => 'http://example.org/?p=3',
     304                'PostsCollection.0.link' => 'http://example.org/?p=3',
     305                'PostsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3',
     306                'PostsCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3',
     307                'PostsCollection.0._links.version-history.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3/revisions',
     308                'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3',
     309                'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3',
     310                'PostsCollection.0._links.wp:term.1.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Ftags&post=3',
     311                'PostModel.id' => 3,
     312                'PostModel.guid.rendered' => 'http://example.org/?p=3',
     313                'PostModel.link' => 'http://example.org/?p=3',
     314                'postRevisions.0.author' => '2',
     315                'postRevisions.0.id' => 4,
     316                'postRevisions.0.parent' => 3,
     317                'postRevisions.0.slug' => '3-revision-v1',
     318                'postRevisions.0.guid.rendered' => 'http://example.org/?p=4',
     319                'postRevisions.0._links.parent.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3',
     320                'PagesCollection.0.id' => 5,
     321                'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=5',
     322                'PagesCollection.0.link' => 'http://example.org/?page_id=5',
     323                'PagesCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5',
     324                'PagesCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5',
     325                'PagesCollection.0._links.version-history.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5/revisions',
     326                'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5',
     327                'PageModel.id' => 5,
     328                'PageModel.guid.rendered' => 'http://example.org/?page_id=5',
     329                'PageModel.link' => 'http://example.org/?page_id=5',
     330                'pageRevisions.0.author' => '2',
     331                'pageRevisions.0.id' => 6,
     332                'pageRevisions.0.parent' => 5,
     333                'pageRevisions.0.slug' => '5-revision-v1',
     334                'pageRevisions.0.guid.rendered' => 'http://example.org/?p=6',
     335                'pageRevisions.0._links.parent.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5',
     336                'MediaCollection.0.id' => 7,
     337                'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=7',
     338                'MediaCollection.0.link' => 'http://example.org/?attachment_id=7',
     339                'MediaCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/media/7',
     340                'MediaCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=7',
     341                'MediaModel.id' => 7,
     342                'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=7',
     343                'MediaModel.link' => 'http://example.org/?attachment_id=7',
     344                'TagsCollection.0.id' => 2,
     345                'TagsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/tags/2',
     346                'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2',
     347                'TagModel.id' => 2,
     348                'UsersCollection.1.id' => 2,
     349                'UsersCollection.1.link' => 'http://example.org/?author=2',
     350                'UsersCollection.1._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/users/2',
     351                'UserModel.id' => 2,
     352                'UserModel.link' => 'http://example.org/?author=2',
     353                'me.id' => 2,
     354                'me.link' => 'http://example.org/?author=2',
     355                'CommentsCollection.0.id' => 2,
     356                'CommentsCollection.0.post' => 3,
     357                'CommentsCollection.0.link' => 'http://example.org/?p=3#comment-2',
     358                'CommentsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/comments/2',
     359                'CommentsCollection.0._links.up.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3',
     360        );
     361
     362        private function normalize_fixture( $data, $path ) {
     363                if ( isset( self::$fixture_replacements[ $path ] ) ) {
     364                        return self::$fixture_replacements[ $path ];
     365                }
     366
     367                if ( ! is_array( $data ) ) {
     368                        return $data;
     369                }
     370
     371                foreach ( $data as $key => $value ) {
     372                        if ( is_string( $value ) && (
     373                                'date' === $key ||
     374                                'date_gmt' === $key ||
     375                                'modified' === $key ||
     376                                'modified_gmt' === $key
     377                        ) ) {
     378                                $data[ $key ] = '2017-02-14T00:00:00';
     379                        } else {
     380                                $data[ $key ] = $this->normalize_fixture( $value, "$path.$key" );
     381                        }
     382                }
     383
     384                return $data;
     385        }
    248386}
  • tests/qunit/fixtures/wp-api-generated.js

     
    1 /*jshint -W109 */
    2 
    3 var mockedApiResponse = {};
    4 
    51/**
    62 * DO NOT EDIT
    73 * Auto-generated by test_build_wp_api_client_fixtures
    84 */
    9 mockedApiResponse.Schema = {"name":"Test Blog","description":"Just another WordPress site","url":"http:\/\/example.org","home":"http:\/\/example.org","namespaces":["oembed\/1.0","wp\/v2"],"authentication":[],"routes":{"\/":{"namespace":"","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/"}},"\/oembed\/1.0":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"oembed\/1.0"},"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/oembed\/1.0"}},"\/oembed\/1.0\/embed":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"required":true},"format":{"required":false,"default":"json"},"maxwidth":{"required":false,"default":600}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/oembed\/1.0\/embed"}},"\/wp\/v2":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"wp\/v2"},"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2"}},"\/wp\/v2\/posts":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug"],"description":"Sort collection by object attribute.","type":"string"},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}},"categories":{"required":false,"default":[],"description":"Limit result set to all items that have the specified term assigned in the categories taxonomy.","type":"array","items":{"type":"integer"}},"categories_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those that have the specified term assigned in the categories taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"default":[],"description":"Limit result set to all items that have the specified term assigned in the tags taxonomy.","type":"array","items":{"type":"integer"}},"tags_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those that have the specified term assigned in the tags taxonomy.","type":"array","items":{"type":"integer"}},"sticky":{"required":false,"description":"Limit result set to items that are sticky.","type":"boolean"}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"format":{"required":false,"enum":["standard"],"description":"The format for the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"sticky":{"required":false,"description":"Whether or not the object should be treated as sticky.","type":"boolean"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"categories":{"required":false,"description":"The terms assigned to the object in the category taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"description":"The terms assigned to the object in the post_tag taxonomy.","type":"array","items":{"type":"integer"}}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"}},"\/wp\/v2\/posts\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"format":{"required":false,"enum":["standard"],"description":"The format for the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"sticky":{"required":false,"description":"Whether or not the object should be treated as sticky.","type":"boolean"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"categories":{"required":false,"description":"The terms assigned to the object in the category taxonomy.","type":"array","items":{"type":"integer"}},"tags":{"required":false,"description":"The terms assigned to the object in the post_tag taxonomy.","type":"array","items":{"type":"integer"}}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/posts\/(?P<parent>[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/posts\/(?P<parent>[\\d]+)\/revisions\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["DELETE"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as revisions do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/pages":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"menu_order":{"required":false,"description":"Limit result set to posts with a specific menu_order value.","type":"integer"},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug","menu_order"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","any"],"type":"string"}}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"menu_order":{"required":false,"description":"The order of the object in relation to other object of its type.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/pages"}},"\/wp\/v2\/pages\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"password":{"required":false,"description":"A password to protect access to the content and excerpt.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"title":{"required":false,"description":"The title for the object.","type":"object"},"content":{"required":false,"description":"The content for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"excerpt":{"required":false,"description":"The excerpt for the object.","type":"object"},"featured_media":{"required":false,"description":"The ID of the featured media for the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"menu_order":{"required":false,"description":"The order of the object in relation to other object of its type.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/pages\/(?P<parent>[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/pages\/(?P<parent>[\\d]+)\/revisions\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["DELETE"],"args":{"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as revisions do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/media":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"default":[],"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"default":[],"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"}},"before":{"required":false,"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date","enum":["date","relevance","id","include","title","slug"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to those of particular parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"}},"slug":{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"}},"status":{"required":false,"default":"inherit","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["inherit","private","trash"],"type":"string"}},"media_type":{"required":false,"enum":["image","video","text","application","audio"],"description":"Limit result set to attachments of a particular media type.","type":"string"},"mime_type":{"required":false,"description":"Limit result set to attachments of a particular MIME type.","type":"string"}}},{"methods":["POST"],"args":{"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"alt_text":{"required":false,"description":"Alternative text to display when attachment is not displayed.","type":"string"},"caption":{"required":false,"description":"The attachment caption.","type":"object"},"description":{"required":false,"description":"The attachment description.","type":"object"},"post":{"required":false,"description":"The ID for the associated post of the attachment.","type":"integer"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/media"}},"\/wp\/v2\/media\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the object unique to its type.","type":"string"},"status":{"required":false,"enum":["publish","future","draft","pending","private"],"description":"A named status for the object.","type":"string"},"title":{"required":false,"description":"The title for the object.","type":"object"},"author":{"required":false,"description":"The ID for the author of the object.","type":"integer"},"comment_status":{"required":false,"enum":["open","closed"],"description":"Whether or not comments are open on the object.","type":"string"},"ping_status":{"required":false,"enum":["open","closed"],"description":"Whether or not the object can be pinged.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"},"template":{"required":false,"enum":[""],"description":"The theme file to use to display the object.","type":"string"},"alt_text":{"required":false,"description":"Alternative text to display when attachment is not displayed.","type":"string"},"caption":{"required":false,"description":"The attachment caption.","type":"object"},"description":{"required":false,"description":"The attachment description.","type":"object"},"post":{"required":false,"description":"The ID for the associated post of the attachment.","type":"integer"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"}}}]},"\/wp\/v2\/types":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/types"}},"\/wp\/v2\/types\/(?P<type>[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"type":{"required":false,"description":"An alphanumeric identifier for the post type.","type":"string"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/statuses":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/statuses"}},"\/wp\/v2\/statuses\/(?P<status>[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"status":{"required":false,"description":"An alphanumeric identifier for the status.","type":"string"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/taxonomies":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"type":{"required":false,"description":"Limit results to taxonomies associated with a specific post type.","type":"string"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies"}},"\/wp\/v2\/taxonomies\/(?P<taxonomy>[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"taxonomy":{"required":false,"description":"An alphanumeric identifier for the taxonomy.","type":"string"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}}]},"\/wp\/v2\/categories":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"parent":{"required":false,"description":"Limit result set to terms assigned to a specific parent.","type":"integer"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with a specific slug.","type":"string"}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/categories"}},"\/wp\/v2\/categories\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"parent":{"required":false,"description":"The parent term ID.","type":"integer"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/tags":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","slug","term_group","description","count"],"description":"Sort collection by term attribute.","type":"string"},"hide_empty":{"required":false,"default":false,"description":"Whether to hide terms not assigned to any posts.","type":"boolean"},"post":{"required":false,"description":"Limit result set to terms assigned to a specific post.","type":"integer"},"slug":{"required":false,"description":"Limit result set to terms with a specific slug.","type":"string"}}},{"methods":["POST"],"args":{"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":true,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/tags"}},"\/wp\/v2\/tags\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"description":{"required":false,"description":"HTML description of the term.","type":"string"},"name":{"required":false,"description":"HTML title for the term.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the term unique to its type.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the term.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as terms do not support trashing.","type":"boolean"}}}]},"\/wp\/v2\/users":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"asc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"name","enum":["id","include","name","registered_date","slug","email","url"],"description":"Sort collection by object attribute.","type":"string"},"slug":{"required":false,"description":"Limit result set to users with a specific slug.","type":"string"},"roles":{"required":false,"description":"Limit result set to users matching at least one specific role provided. Accepts csv list or single role.","type":"array","items":{"type":"string"}}}},{"methods":["POST"],"args":{"username":{"required":true,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":true,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","de_DE","en_GB","es_ES"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":true,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users"}},"\/wp\/v2\/users\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the user.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the user.","type":"integer"},"username":{"required":false,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":false,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","de_DE","en_GB","es_ES"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":false,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the user.","type":"integer"},"force":{"required":false,"default":false,"description":"Required to be true, as users do not support trashing.","type":"boolean"},"reassign":{"required":true,"description":"Reassign the deleted user's posts and links to this user ID.","type":"integer"}}}]},"\/wp\/v2\/users\/me":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{"required":false,"description":"Login name for the user.","type":"string"},"name":{"required":false,"description":"Display name for the user.","type":"string"},"first_name":{"required":false,"description":"First name for the user.","type":"string"},"last_name":{"required":false,"description":"Last name for the user.","type":"string"},"email":{"required":false,"description":"The email address for the user.","type":"string"},"url":{"required":false,"description":"URL of the user.","type":"string"},"description":{"required":false,"description":"Description of the user.","type":"string"},"locale":{"required":false,"enum":["","en_US","de_DE","en_GB","es_ES"],"description":"Locale for the user.","type":"string"},"nickname":{"required":false,"description":"The nickname for the user.","type":"string"},"slug":{"required":false,"description":"An alphanumeric identifier for the user.","type":"string"},"roles":{"required":false,"description":"Roles assigned to the user.","type":"array","items":{"type":"string"}},"password":{"required":false,"description":"Password for the user (never included).","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"force":{"required":false,"default":false,"description":"Required to be true, as users do not support trashing.","type":"boolean"},"reassign":{"required":true,"description":"Reassign the deleted user's posts and links to this user ID.","type":"integer"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/me"}},"\/wp\/v2\/comments":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"page":{"required":false,"default":1,"description":"Current page of the collection.","type":"integer"},"per_page":{"required":false,"default":10,"description":"Maximum number of items to be returned in result set.","type":"integer"},"search":{"required":false,"description":"Limit results to those matching a string.","type":"string"},"after":{"required":false,"description":"Limit response to comments published after a given ISO8601 compliant date.","type":"string"},"author":{"required":false,"description":"Limit result set to comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"}},"author_exclude":{"required":false,"description":"Ensure result set excludes comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"}},"author_email":{"required":false,"description":"Limit result set to that from a specific author email. Requires authorization.","type":"string"},"before":{"required":false,"description":"Limit response to comments published before a given ISO8601 compliant date.","type":"string"},"exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"}},"include":{"required":false,"default":[],"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"}},"offset":{"required":false,"description":"Offset the result set by a specific number of items.","type":"integer"},"order":{"required":false,"default":"desc","enum":["asc","desc"],"description":"Order sort attribute ascending or descending.","type":"string"},"orderby":{"required":false,"default":"date_gmt","enum":["date","date_gmt","id","include","post","parent","type"],"description":"Sort collection by object attribute.","type":"string"},"parent":{"required":false,"default":[],"description":"Limit result set to comments of specific parent IDs.","type":"array","items":{"type":"integer"}},"parent_exclude":{"required":false,"default":[],"description":"Ensure result set excludes specific parent IDs.","type":"array","items":{"type":"integer"}},"post":{"required":false,"default":[],"description":"Limit result set to comments assigned to specific post IDs.","type":"array","items":{"type":"integer"}},"status":{"required":false,"default":"approve","description":"Limit result set to comments assigned a specific status. Requires authorization.","type":"string"},"type":{"required":false,"default":"comment","description":"Limit result set to comments assigned a specific type. Requires authorization.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST"],"args":{"author":{"required":false,"description":"The ID of the user object, if author was a user.","type":"integer"},"author_email":{"required":false,"description":"Email address for the object author.","type":"string"},"author_ip":{"required":false,"description":"IP address for the object author.","type":"string"},"author_name":{"required":false,"description":"Display name for the object author.","type":"string"},"author_url":{"required":false,"description":"URL for the object author.","type":"string"},"author_user_agent":{"required":false,"description":"User agent for the object author.","type":"string"},"content":{"required":false,"description":"The content for the object.","type":"object"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"parent":{"required":false,"default":0,"description":"The ID for the parent of the object.","type":"integer"},"post":{"required":false,"default":0,"description":"The ID of the associated post object.","type":"integer"},"status":{"required":false,"description":"State of the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/comments"}},"\/wp\/v2\/comments\/(?P<id>[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"context":{"required":false,"default":"view","enum":["view","embed","edit"],"description":"Scope under which the request is made; determines fields present in response.","type":"string"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"author":{"required":false,"description":"The ID of the user object, if author was a user.","type":"integer"},"author_email":{"required":false,"description":"Email address for the object author.","type":"string"},"author_ip":{"required":false,"description":"IP address for the object author.","type":"string"},"author_name":{"required":false,"description":"Display name for the object author.","type":"string"},"author_url":{"required":false,"description":"URL for the object author.","type":"string"},"author_user_agent":{"required":false,"description":"User agent for the object author.","type":"string"},"content":{"required":false,"description":"The content for the object.","type":"object"},"date":{"required":false,"description":"The date the object was published, in the site's timezone.","type":"string"},"date_gmt":{"required":false,"description":"The date the object was published, as GMT.","type":"string"},"parent":{"required":false,"description":"The ID for the parent of the object.","type":"integer"},"post":{"required":false,"description":"The ID of the associated post object.","type":"integer"},"status":{"required":false,"description":"State of the object.","type":"string"},"meta":{"required":false,"description":"Meta fields.","type":"object"}}},{"methods":["DELETE"],"args":{"id":{"required":false,"description":"Unique identifier for the object.","type":"integer"},"force":{"required":false,"default":false,"description":"Whether to bypass trash and force deletion.","type":"boolean"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}}]},"\/wp\/v2\/settings":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"title":{"required":false,"description":"Site title.","type":"string"},"description":{"required":false,"description":"Site tagline.","type":"string"},"url":{"required":false,"description":"Site URL.","type":"string"},"email":{"required":false,"description":"This address is used for admin purposes, like new user notification.","type":"string"},"timezone":{"required":false,"description":"A city in the same timezone as you.","type":"string"},"date_format":{"required":false,"description":"A date format for all date strings.","type":"string"},"time_format":{"required":false,"description":"A time format for all time strings.","type":"string"},"start_of_week":{"required":false,"description":"A day number of the week that the week should start on.","type":"integer"},"language":{"required":false,"description":"WordPress locale code.","type":"string"},"use_smilies":{"required":false,"description":"Convert emoticons like :-) and :-P to graphics on display.","type":"boolean"},"default_category":{"required":false,"description":"Default post category.","type":"integer"},"default_post_format":{"required":false,"description":"Default post format.","type":"string"},"posts_per_page":{"required":false,"description":"Blog pages show at most.","type":"integer"},"default_ping_status":{"required":false,"enum":["open","closed"],"description":"Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.","type":"string"},"default_comment_status":{"required":false,"enum":["open","closed"],"description":"Allow people to post comments on new articles.","type":"string"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/wp\/v2\/settings"}}}};
     5var mockedApiResponse = {};
     6/* jshint -W109 */
    107
    11 mockedApiResponse.oembed = {"namespace":"oembed\/1.0","routes":{"\/oembed\/1.0":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"required":false,"default":"oembed\/1.0"},"context":{"required":false,"default":"view"}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/oembed\/1.0"}},"\/oembed\/1.0\/embed":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"required":true},"format":{"required":false,"default":"json"},"maxwidth":{"required":false,"default":600}}}],"_links":{"self":"http:\/\/example.org\/?rest_route=\/oembed\/1.0\/embed"}}}};
     8mockedApiResponse.Schema = {
     9    "name": "Test Blog",
     10    "description": "Just another WordPress site",
     11    "url": "http://example.org",
     12    "home": "http://example.org",
     13    "namespaces": [
     14        "oembed/1.0",
     15        "wp/v2"
     16    ],
     17    "authentication": [],
     18    "routes": {
     19        "/": {
     20            "namespace": "",
     21            "methods": [
     22                "GET"
     23            ],
     24            "endpoints": [
     25                {
     26                    "methods": [
     27                        "GET"
     28                    ],
     29                    "args": {
     30                        "context": {
     31                            "required": false,
     32                            "default": "view"
     33                        }
     34                    }
     35                }
     36            ],
     37            "_links": {
     38                "self": "http://example.org/?rest_route=/"
     39            }
     40        },
     41        "/oembed/1.0": {
     42            "namespace": "oembed/1.0",
     43            "methods": [
     44                "GET"
     45            ],
     46            "endpoints": [
     47                {
     48                    "methods": [
     49                        "GET"
     50                    ],
     51                    "args": {
     52                        "namespace": {
     53                            "required": false,
     54                            "default": "oembed/1.0"
     55                        },
     56                        "context": {
     57                            "required": false,
     58                            "default": "view"
     59                        }
     60                    }
     61                }
     62            ],
     63            "_links": {
     64                "self": "http://example.org/?rest_route=/oembed/1.0"
     65            }
     66        },
     67        "/oembed/1.0/embed": {
     68            "namespace": "oembed/1.0",
     69            "methods": [
     70                "GET"
     71            ],
     72            "endpoints": [
     73                {
     74                    "methods": [
     75                        "GET"
     76                    ],
     77                    "args": {
     78                        "url": {
     79                            "required": true
     80                        },
     81                        "format": {
     82                            "required": false,
     83                            "default": "json"
     84                        },
     85                        "maxwidth": {
     86                            "required": false,
     87                            "default": 600
     88                        }
     89                    }
     90                }
     91            ],
     92            "_links": {
     93                "self": "http://example.org/?rest_route=/oembed/1.0/embed"
     94            }
     95        },
     96        "/wp/v2": {
     97            "namespace": "wp/v2",
     98            "methods": [
     99                "GET"
     100            ],
     101            "endpoints": [
     102                {
     103                    "methods": [
     104                        "GET"
     105                    ],
     106                    "args": {
     107                        "namespace": {
     108                            "required": false,
     109                            "default": "wp/v2"
     110                        },
     111                        "context": {
     112                            "required": false,
     113                            "default": "view"
     114                        }
     115                    }
     116                }
     117            ],
     118            "_links": {
     119                "self": "http://example.org/?rest_route=/wp/v2"
     120            }
     121        },
     122        "/wp/v2/posts": {
     123            "namespace": "wp/v2",
     124            "methods": [
     125                "GET",
     126                "POST"
     127            ],
     128            "endpoints": [
     129                {
     130                    "methods": [
     131                        "GET"
     132                    ],
     133                    "args": {
     134                        "context": {
     135                            "required": false,
     136                            "default": "view",
     137                            "enum": [
     138                                "view",
     139                                "embed",
     140                                "edit"
     141                            ],
     142                            "description": "Scope under which the request is made; determines fields present in response.",
     143                            "type": "string"
     144                        },
     145                        "page": {
     146                            "required": false,
     147                            "default": 1,
     148                            "description": "Current page of the collection.",
     149                            "type": "integer"
     150                        },
     151                        "per_page": {
     152                            "required": false,
     153                            "default": 10,
     154                            "description": "Maximum number of items to be returned in result set.",
     155                            "type": "integer"
     156                        },
     157                        "search": {
     158                            "required": false,
     159                            "description": "Limit results to those matching a string.",
     160                            "type": "string"
     161                        },
     162                        "after": {
     163                            "required": false,
     164                            "description": "Limit response to posts published after a given ISO8601 compliant date.",
     165                            "type": "string"
     166                        },
     167                        "author": {
     168                            "required": false,
     169                            "default": [],
     170                            "description": "Limit result set to posts assigned to specific authors.",
     171                            "type": "array",
     172                            "items": {
     173                                "type": "integer"
     174                            }
     175                        },
     176                        "author_exclude": {
     177                            "required": false,
     178                            "default": [],
     179                            "description": "Ensure result set excludes posts assigned to specific authors.",
     180                            "type": "array",
     181                            "items": {
     182                                "type": "integer"
     183                            }
     184                        },
     185                        "before": {
     186                            "required": false,
     187                            "description": "Limit response to posts published before a given ISO8601 compliant date.",
     188                            "type": "string"
     189                        },
     190                        "exclude": {
     191                            "required": false,
     192                            "default": [],
     193                            "description": "Ensure result set excludes specific IDs.",
     194                            "type": "array",
     195                            "items": {
     196                                "type": "integer"
     197                            }
     198                        },
     199                        "include": {
     200                            "required": false,
     201                            "default": [],
     202                            "description": "Limit result set to specific IDs.",
     203                            "type": "array",
     204                            "items": {
     205                                "type": "integer"
     206                            }
     207                        },
     208                        "offset": {
     209                            "required": false,
     210                            "description": "Offset the result set by a specific number of items.",
     211                            "type": "integer"
     212                        },
     213                        "order": {
     214                            "required": false,
     215                            "default": "desc",
     216                            "enum": [
     217                                "asc",
     218                                "desc"
     219                            ],
     220                            "description": "Order sort attribute ascending or descending.",
     221                            "type": "string"
     222                        },
     223                        "orderby": {
     224                            "required": false,
     225                            "default": "date",
     226                            "enum": [
     227                                "date",
     228                                "relevance",
     229                                "id",
     230                                "include",
     231                                "title",
     232                                "slug"
     233                            ],
     234                            "description": "Sort collection by object attribute.",
     235                            "type": "string"
     236                        },
     237                        "slug": {
     238                            "required": false,
     239                            "description": "Limit result set to posts with one or more specific slugs.",
     240                            "type": "array",
     241                            "items": {
     242                                "type": "string"
     243                            }
     244                        },
     245                        "status": {
     246                            "required": false,
     247                            "default": "publish",
     248                            "description": "Limit result set to posts assigned one or more statuses.",
     249                            "type": "array",
     250                            "items": {
     251                                "enum": [
     252                                    "publish",
     253                                    "future",
     254                                    "draft",
     255                                    "pending",
     256                                    "private",
     257                                    "trash",
     258                                    "auto-draft",
     259                                    "inherit",
     260                                    "any"
     261                                ],
     262                                "type": "string"
     263                            }
     264                        },
     265                        "categories": {
     266                            "required": false,
     267                            "default": [],
     268                            "description": "Limit result set to all items that have the specified term assigned in the categories taxonomy.",
     269                            "type": "array",
     270                            "items": {
     271                                "type": "integer"
     272                            }
     273                        },
     274                        "categories_exclude": {
     275                            "required": false,
     276                            "default": [],
     277                            "description": "Limit result set to all items except those that have the specified term assigned in the categories taxonomy.",
     278                            "type": "array",
     279                            "items": {
     280                                "type": "integer"
     281                            }
     282                        },
     283                        "tags": {
     284                            "required": false,
     285                            "default": [],
     286                            "description": "Limit result set to all items that have the specified term assigned in the tags taxonomy.",
     287                            "type": "array",
     288                            "items": {
     289                                "type": "integer"
     290                            }
     291                        },
     292                        "tags_exclude": {
     293                            "required": false,
     294                            "default": [],
     295                            "description": "Limit result set to all items except those that have the specified term assigned in the tags taxonomy.",
     296                            "type": "array",
     297                            "items": {
     298                                "type": "integer"
     299                            }
     300                        },
     301                        "sticky": {
     302                            "required": false,
     303                            "description": "Limit result set to items that are sticky.",
     304                            "type": "boolean"
     305                        }
     306                    }
     307                },
     308                {
     309                    "methods": [
     310                        "POST"
     311                    ],
     312                    "args": {
     313                        "date": {
     314                            "required": false,
     315                            "description": "The date the object was published, in the site's timezone.",
     316                            "type": "string"
     317                        },
     318                        "date_gmt": {
     319                            "required": false,
     320                            "description": "The date the object was published, as GMT.",
     321                            "type": "string"
     322                        },
     323                        "slug": {
     324                            "required": false,
     325                            "description": "An alphanumeric identifier for the object unique to its type.",
     326                            "type": "string"
     327                        },
     328                        "status": {
     329                            "required": false,
     330                            "enum": [
     331                                "publish",
     332                                "future",
     333                                "draft",
     334                                "pending",
     335                                "private"
     336                            ],
     337                            "description": "A named status for the object.",
     338                            "type": "string"
     339                        },
     340                        "password": {
     341                            "required": false,
     342                            "description": "A password to protect access to the content and excerpt.",
     343                            "type": "string"
     344                        },
     345                        "title": {
     346                            "required": false,
     347                            "description": "The title for the object.",
     348                            "type": "object"
     349                        },
     350                        "content": {
     351                            "required": false,
     352                            "description": "The content for the object.",
     353                            "type": "object"
     354                        },
     355                        "author": {
     356                            "required": false,
     357                            "description": "The ID for the author of the object.",
     358                            "type": "integer"
     359                        },
     360                        "excerpt": {
     361                            "required": false,
     362                            "description": "The excerpt for the object.",
     363                            "type": "object"
     364                        },
     365                        "featured_media": {
     366                            "required": false,
     367                            "description": "The ID of the featured media for the object.",
     368                            "type": "integer"
     369                        },
     370                        "comment_status": {
     371                            "required": false,
     372                            "enum": [
     373                                "open",
     374                                "closed"
     375                            ],
     376                            "description": "Whether or not comments are open on the object.",
     377                            "type": "string"
     378                        },
     379                        "ping_status": {
     380                            "required": false,
     381                            "enum": [
     382                                "open",
     383                                "closed"
     384                            ],
     385                            "description": "Whether or not the object can be pinged.",
     386                            "type": "string"
     387                        },
     388                        "format": {
     389                            "required": false,
     390                            "enum": [
     391                                "standard"
     392                            ],
     393                            "description": "The format for the object.",
     394                            "type": "string"
     395                        },
     396                        "meta": {
     397                            "required": false,
     398                            "description": "Meta fields.",
     399                            "type": "object"
     400                        },
     401                        "sticky": {
     402                            "required": false,
     403                            "description": "Whether or not the object should be treated as sticky.",
     404                            "type": "boolean"
     405                        },
     406                        "template": {
     407                            "required": false,
     408                            "enum": [
     409                                ""
     410                            ],
     411                            "description": "The theme file to use to display the object.",
     412                            "type": "string"
     413                        },
     414                        "categories": {
     415                            "required": false,
     416                            "description": "The terms assigned to the object in the category taxonomy.",
     417                            "type": "array",
     418                            "items": {
     419                                "type": "integer"
     420                            }
     421                        },
     422                        "tags": {
     423                            "required": false,
     424                            "description": "The terms assigned to the object in the post_tag taxonomy.",
     425                            "type": "array",
     426                            "items": {
     427                                "type": "integer"
     428                            }
     429                        }
     430                    }
     431                }
     432            ],
     433            "_links": {
     434                "self": "http://example.org/?rest_route=/wp/v2/posts"
     435            }
     436        },
     437        "/wp/v2/posts/(?P<id>[\\d]+)": {
     438            "namespace": "wp/v2",
     439            "methods": [
     440                "GET",
     441                "POST",
     442                "PUT",
     443                "PATCH",
     444                "DELETE"
     445            ],
     446            "endpoints": [
     447                {
     448                    "methods": [
     449                        "GET"
     450                    ],
     451                    "args": {
     452                        "id": {
     453                            "required": false,
     454                            "description": "Unique identifier for the object.",
     455                            "type": "integer"
     456                        },
     457                        "context": {
     458                            "required": false,
     459                            "default": "view",
     460                            "enum": [
     461                                "view",
     462                                "embed",
     463                                "edit"
     464                            ],
     465                            "description": "Scope under which the request is made; determines fields present in response.",
     466                            "type": "string"
     467                        },
     468                        "password": {
     469                            "required": false,
     470                            "description": "The password for the post if it is password protected.",
     471                            "type": "string"
     472                        }
     473                    }
     474                },
     475                {
     476                    "methods": [
     477                        "POST",
     478                        "PUT",
     479                        "PATCH"
     480                    ],
     481                    "args": {
     482                        "id": {
     483                            "required": false,
     484                            "description": "Unique identifier for the object.",
     485                            "type": "integer"
     486                        },
     487                        "date": {
     488                            "required": false,
     489                            "description": "The date the object was published, in the site's timezone.",
     490                            "type": "string"
     491                        },
     492                        "date_gmt": {
     493                            "required": false,
     494                            "description": "The date the object was published, as GMT.",
     495                            "type": "string"
     496                        },
     497                        "slug": {
     498                            "required": false,
     499                            "description": "An alphanumeric identifier for the object unique to its type.",
     500                            "type": "string"
     501                        },
     502                        "status": {
     503                            "required": false,
     504                            "enum": [
     505                                "publish",
     506                                "future",
     507                                "draft",
     508                                "pending",
     509                                "private"
     510                            ],
     511                            "description": "A named status for the object.",
     512                            "type": "string"
     513                        },
     514                        "password": {
     515                            "required": false,
     516                            "description": "A password to protect access to the content and excerpt.",
     517                            "type": "string"
     518                        },
     519                        "title": {
     520                            "required": false,
     521                            "description": "The title for the object.",
     522                            "type": "object"
     523                        },
     524                        "content": {
     525                            "required": false,
     526                            "description": "The content for the object.",
     527                            "type": "object"
     528                        },
     529                        "author": {
     530                            "required": false,
     531                            "description": "The ID for the author of the object.",
     532                            "type": "integer"
     533                        },
     534                        "excerpt": {
     535                            "required": false,
     536                            "description": "The excerpt for the object.",
     537                            "type": "object"
     538                        },
     539                        "featured_media": {
     540                            "required": false,
     541                            "description": "The ID of the featured media for the object.",
     542                            "type": "integer"
     543                        },
     544                        "comment_status": {
     545                            "required": false,
     546                            "enum": [
     547                                "open",
     548                                "closed"
     549                            ],
     550                            "description": "Whether or not comments are open on the object.",
     551                            "type": "string"
     552                        },
     553                        "ping_status": {
     554                            "required": false,
     555                            "enum": [
     556                                "open",
     557                                "closed"
     558                            ],
     559                            "description": "Whether or not the object can be pinged.",
     560                            "type": "string"
     561                        },
     562                        "format": {
     563                            "required": false,
     564                            "enum": [
     565                                "standard"
     566                            ],
     567                            "description": "The format for the object.",
     568                            "type": "string"
     569                        },
     570                        "meta": {
     571                            "required": false,
     572                            "description": "Meta fields.",
     573                            "type": "object"
     574                        },
     575                        "sticky": {
     576                            "required": false,
     577                            "description": "Whether or not the object should be treated as sticky.",
     578                            "type": "boolean"
     579                        },
     580                        "template": {
     581                            "required": false,
     582                            "enum": [
     583                                ""
     584                            ],
     585                            "description": "The theme file to use to display the object.",
     586                            "type": "string"
     587                        },
     588                        "categories": {
     589                            "required": false,
     590                            "description": "The terms assigned to the object in the category taxonomy.",
     591                            "type": "array",
     592                            "items": {
     593                                "type": "integer"
     594                            }
     595                        },
     596                        "tags": {
     597                            "required": false,
     598                            "description": "The terms assigned to the object in the post_tag taxonomy.",
     599                            "type": "array",
     600                            "items": {
     601                                "type": "integer"
     602                            }
     603                        }
     604                    }
     605                },
     606                {
     607                    "methods": [
     608                        "DELETE"
     609                    ],
     610                    "args": {
     611                        "id": {
     612                            "required": false,
     613                            "description": "Unique identifier for the object.",
     614                            "type": "integer"
     615                        },
     616                        "force": {
     617                            "required": false,
     618                            "default": false,
     619                            "description": "Whether to bypass trash and force deletion.",
     620                            "type": "boolean"
     621                        }
     622                    }
     623                }
     624            ]
     625        },
     626        "/wp/v2/posts/(?P<parent>[\\d]+)/revisions": {
     627            "namespace": "wp/v2",
     628            "methods": [
     629                "GET"
     630            ],
     631            "endpoints": [
     632                {
     633                    "methods": [
     634                        "GET"
     635                    ],
     636                    "args": {
     637                        "parent": {
     638                            "required": false,
     639                            "description": "The ID for the parent of the object.",
     640                            "type": "integer"
     641                        },
     642                        "context": {
     643                            "required": false,
     644                            "default": "view",
     645                            "enum": [
     646                                "view",
     647                                "embed",
     648                                "edit"
     649                            ],
     650                            "description": "Scope under which the request is made; determines fields present in response.",
     651                            "type": "string"
     652                        }
     653                    }
     654                }
     655            ]
     656        },
     657        "/wp/v2/posts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
     658            "namespace": "wp/v2",
     659            "methods": [
     660                "GET",
     661                "DELETE"
     662            ],
     663            "endpoints": [
     664                {
     665                    "methods": [
     666                        "GET"
     667                    ],
     668                    "args": {
     669                        "parent": {
     670                            "required": false,
     671                            "description": "The ID for the parent of the object.",
     672                            "type": "integer"
     673                        },
     674                        "id": {
     675                            "required": false,
     676                            "description": "Unique identifier for the object.",
     677                            "type": "integer"
     678                        },
     679                        "context": {
     680                            "required": false,
     681                            "default": "view",
     682                            "enum": [
     683                                "view",
     684                                "embed",
     685                                "edit"
     686                            ],
     687                            "description": "Scope under which the request is made; determines fields present in response.",
     688                            "type": "string"
     689                        }
     690                    }
     691                },
     692                {
     693                    "methods": [
     694                        "DELETE"
     695                    ],
     696                    "args": {
     697                        "parent": {
     698                            "required": false,
     699                            "description": "The ID for the parent of the object.",
     700                            "type": "integer"
     701                        },
     702                        "id": {
     703                            "required": false,
     704                            "description": "Unique identifier for the object.",
     705                            "type": "integer"
     706                        },
     707                        "force": {
     708                            "required": false,
     709                            "default": false,
     710                            "description": "Required to be true, as revisions do not support trashing.",
     711                            "type": "boolean"
     712                        }
     713                    }
     714                }
     715            ]
     716        },
     717        "/wp/v2/pages": {
     718            "namespace": "wp/v2",
     719            "methods": [
     720                "GET",
     721                "POST"
     722            ],
     723            "endpoints": [
     724                {
     725                    "methods": [
     726                        "GET"
     727                    ],
     728                    "args": {
     729                        "context": {
     730                            "required": false,
     731                            "default": "view",
     732                            "enum": [
     733                                "view",
     734                                "embed",
     735                                "edit"
     736                            ],
     737                            "description": "Scope under which the request is made; determines fields present in response.",
     738                            "type": "string"
     739                        },
     740                        "page": {
     741                            "required": false,
     742                            "default": 1,
     743                            "description": "Current page of the collection.",
     744                            "type": "integer"
     745                        },
     746                        "per_page": {
     747                            "required": false,
     748                            "default": 10,
     749                            "description": "Maximum number of items to be returned in result set.",
     750                            "type": "integer"
     751                        },
     752                        "search": {
     753                            "required": false,
     754                            "description": "Limit results to those matching a string.",
     755                            "type": "string"
     756                        },
     757                        "after": {
     758                            "required": false,
     759                            "description": "Limit response to posts published after a given ISO8601 compliant date.",
     760                            "type": "string"
     761                        },
     762                        "author": {
     763                            "required": false,
     764                            "default": [],
     765                            "description": "Limit result set to posts assigned to specific authors.",
     766                            "type": "array",
     767                            "items": {
     768                                "type": "integer"
     769                            }
     770                        },
     771                        "author_exclude": {
     772                            "required": false,
     773                            "default": [],
     774                            "description": "Ensure result set excludes posts assigned to specific authors.",
     775                            "type": "array",
     776                            "items": {
     777                                "type": "integer"
     778                            }
     779                        },
     780                        "before": {
     781                            "required": false,
     782                            "description": "Limit response to posts published before a given ISO8601 compliant date.",
     783                            "type": "string"
     784                        },
     785                        "exclude": {
     786                            "required": false,
     787                            "default": [],
     788                            "description": "Ensure result set excludes specific IDs.",
     789                            "type": "array",
     790                            "items": {
     791                                "type": "integer"
     792                            }
     793                        },
     794                        "include": {
     795                            "required": false,
     796                            "default": [],
     797                            "description": "Limit result set to specific IDs.",
     798                            "type": "array",
     799                            "items": {
     800                                "type": "integer"
     801                            }
     802                        },
     803                        "menu_order": {
     804                            "required": false,
     805                            "description": "Limit result set to posts with a specific menu_order value.",
     806                            "type": "integer"
     807                        },
     808                        "offset": {
     809                            "required": false,
     810                            "description": "Offset the result set by a specific number of items.",
     811                            "type": "integer"
     812                        },
     813                        "order": {
     814                            "required": false,
     815                            "default": "desc",
     816                            "enum": [
     817                                "asc",
     818                                "desc"
     819                            ],
     820                            "description": "Order sort attribute ascending or descending.",
     821                            "type": "string"
     822                        },
     823                        "orderby": {
     824                            "required": false,
     825                            "default": "date",
     826                            "enum": [
     827                                "date",
     828                                "relevance",
     829                                "id",
     830                                "include",
     831                                "title",
     832                                "slug",
     833                                "menu_order"
     834                            ],
     835                            "description": "Sort collection by object attribute.",
     836                            "type": "string"
     837                        },
     838                        "parent": {
     839                            "required": false,
     840                            "default": [],
     841                            "description": "Limit result set to those of particular parent IDs.",
     842                            "type": "array",
     843                            "items": {
     844                                "type": "integer"
     845                            }
     846                        },
     847                        "parent_exclude": {
     848                            "required": false,
     849                            "default": [],
     850                            "description": "Limit result set to all items except those of a particular parent ID.",
     851                            "type": "array",
     852                            "items": {
     853                                "type": "integer"
     854                            }
     855                        },
     856                        "slug": {
     857                            "required": false,
     858                            "description": "Limit result set to posts with one or more specific slugs.",
     859                            "type": "array",
     860                            "items": {
     861                                "type": "string"
     862                            }
     863                        },
     864                        "status": {
     865                            "required": false,
     866                            "default": "publish",
     867                            "description": "Limit result set to posts assigned one or more statuses.",
     868                            "type": "array",
     869                            "items": {
     870                                "enum": [
     871                                    "publish",
     872                                    "future",
     873                                    "draft",
     874                                    "pending",
     875                                    "private",
     876                                    "trash",
     877                                    "auto-draft",
     878                                    "inherit",
     879                                    "any"
     880                                ],
     881                                "type": "string"
     882                            }
     883                        }
     884                    }
     885                },
     886                {
     887                    "methods": [
     888                        "POST"
     889                    ],
     890                    "args": {
     891                        "date": {
     892                            "required": false,
     893                            "description": "The date the object was published, in the site's timezone.",
     894                            "type": "string"
     895                        },
     896                        "date_gmt": {
     897                            "required": false,
     898                            "description": "The date the object was published, as GMT.",
     899                            "type": "string"
     900                        },
     901                        "slug": {
     902                            "required": false,
     903                            "description": "An alphanumeric identifier for the object unique to its type.",
     904                            "type": "string"
     905                        },
     906                        "status": {
     907                            "required": false,
     908                            "enum": [
     909                                "publish",
     910                                "future",
     911                                "draft",
     912                                "pending",
     913                                "private"
     914                            ],
     915                            "description": "A named status for the object.",
     916                            "type": "string"
     917                        },
     918                        "password": {
     919                            "required": false,
     920                            "description": "A password to protect access to the content and excerpt.",
     921                            "type": "string"
     922                        },
     923                        "parent": {
     924                            "required": false,
     925                            "description": "The ID for the parent of the object.",
     926                            "type": "integer"
     927                        },
     928                        "title": {
     929                            "required": false,
     930                            "description": "The title for the object.",
     931                            "type": "object"
     932                        },
     933                        "content": {
     934                            "required": false,
     935                            "description": "The content for the object.",
     936                            "type": "object"
     937                        },
     938                        "author": {
     939                            "required": false,
     940                            "description": "The ID for the author of the object.",
     941                            "type": "integer"
     942                        },
     943                        "excerpt": {
     944                            "required": false,
     945                            "description": "The excerpt for the object.",
     946                            "type": "object"
     947                        },
     948                        "featured_media": {
     949                            "required": false,
     950                            "description": "The ID of the featured media for the object.",
     951                            "type": "integer"
     952                        },
     953                        "comment_status": {
     954                            "required": false,
     955                            "enum": [
     956                                "open",
     957                                "closed"
     958                            ],
     959                            "description": "Whether or not comments are open on the object.",
     960                            "type": "string"
     961                        },
     962                        "ping_status": {
     963                            "required": false,
     964                            "enum": [
     965                                "open",
     966                                "closed"
     967                            ],
     968                            "description": "Whether or not the object can be pinged.",
     969                            "type": "string"
     970                        },
     971                        "menu_order": {
     972                            "required": false,
     973                            "description": "The order of the object in relation to other object of its type.",
     974                            "type": "integer"
     975                        },
     976                        "meta": {
     977                            "required": false,
     978                            "description": "Meta fields.",
     979                            "type": "object"
     980                        },
     981                        "template": {
     982                            "required": false,
     983                            "enum": [
     984                                ""
     985                            ],
     986                            "description": "The theme file to use to display the object.",
     987                            "type": "string"
     988                        }
     989                    }
     990                }
     991            ],
     992            "_links": {
     993                "self": "http://example.org/?rest_route=/wp/v2/pages"
     994            }
     995        },
     996        "/wp/v2/pages/(?P<id>[\\d]+)": {
     997            "namespace": "wp/v2",
     998            "methods": [
     999                "GET",
     1000                "POST",
     1001                "PUT",
     1002                "PATCH",
     1003                "DELETE"
     1004            ],
     1005            "endpoints": [
     1006                {
     1007                    "methods": [
     1008                        "GET"
     1009                    ],
     1010                    "args": {
     1011                        "id": {
     1012                            "required": false,
     1013                            "description": "Unique identifier for the object.",
     1014                            "type": "integer"
     1015                        },
     1016                        "context": {
     1017                            "required": false,
     1018                            "default": "view",
     1019                            "enum": [
     1020                                "view",
     1021                                "embed",
     1022                                "edit"
     1023                            ],
     1024                            "description": "Scope under which the request is made; determines fields present in response.",
     1025                            "type": "string"
     1026                        },
     1027                        "password": {
     1028                            "required": false,
     1029                            "description": "The password for the post if it is password protected.",
     1030                            "type": "string"
     1031                        }
     1032                    }
     1033                },
     1034                {
     1035                    "methods": [
     1036                        "POST",
     1037                        "PUT",
     1038                        "PATCH"
     1039                    ],
     1040                    "args": {
     1041                        "id": {
     1042                            "required": false,
     1043                            "description": "Unique identifier for the object.",
     1044                            "type": "integer"
     1045                        },
     1046                        "date": {
     1047                            "required": false,
     1048                            "description": "The date the object was published, in the site's timezone.",
     1049                            "type": "string"
     1050                        },
     1051                        "date_gmt": {
     1052                            "required": false,
     1053                            "description": "The date the object was published, as GMT.",
     1054                            "type": "string"
     1055                        },
     1056                        "slug": {
     1057                            "required": false,
     1058                            "description": "An alphanumeric identifier for the object unique to its type.",
     1059                            "type": "string"
     1060                        },
     1061                        "status": {
     1062                            "required": false,
     1063                            "enum": [
     1064                                "publish",
     1065                                "future",
     1066                                "draft",
     1067                                "pending",
     1068                                "private"
     1069                            ],
     1070                            "description": "A named status for the object.",
     1071                            "type": "string"
     1072                        },
     1073                        "password": {
     1074                            "required": false,
     1075                            "description": "A password to protect access to the content and excerpt.",
     1076                            "type": "string"
     1077                        },
     1078                        "parent": {
     1079                            "required": false,
     1080                            "description": "The ID for the parent of the object.",
     1081                            "type": "integer"
     1082                        },
     1083                        "title": {
     1084                            "required": false,
     1085                            "description": "The title for the object.",
     1086                            "type": "object"
     1087                        },
     1088                        "content": {
     1089                            "required": false,
     1090                            "description": "The content for the object.",
     1091                            "type": "object"
     1092                        },
     1093                        "author": {
     1094                            "required": false,
     1095                            "description": "The ID for the author of the object.",
     1096                            "type": "integer"
     1097                        },
     1098                        "excerpt": {
     1099                            "required": false,
     1100                            "description": "The excerpt for the object.",
     1101                            "type": "object"
     1102                        },
     1103                        "featured_media": {
     1104                            "required": false,
     1105                            "description": "The ID of the featured media for the object.",
     1106                            "type": "integer"
     1107                        },
     1108                        "comment_status": {
     1109                            "required": false,
     1110                            "enum": [
     1111                                "open",
     1112                                "closed"
     1113                            ],
     1114                            "description": "Whether or not comments are open on the object.",
     1115                            "type": "string"
     1116                        },
     1117                        "ping_status": {
     1118                            "required": false,
     1119                            "enum": [
     1120                                "open",
     1121                                "closed"
     1122                            ],
     1123                            "description": "Whether or not the object can be pinged.",
     1124                            "type": "string"
     1125                        },
     1126                        "menu_order": {
     1127                            "required": false,
     1128                            "description": "The order of the object in relation to other object of its type.",
     1129                            "type": "integer"
     1130                        },
     1131                        "meta": {
     1132                            "required": false,
     1133                            "description": "Meta fields.",
     1134                            "type": "object"
     1135                        },
     1136                        "template": {
     1137                            "required": false,
     1138                            "enum": [
     1139                                ""
     1140                            ],
     1141                            "description": "The theme file to use to display the object.",
     1142                            "type": "string"
     1143                        }
     1144                    }
     1145                },
     1146                {
     1147                    "methods": [
     1148                        "DELETE"
     1149                    ],
     1150                    "args": {
     1151                        "id": {
     1152                            "required": false,
     1153                            "description": "Unique identifier for the object.",
     1154                            "type": "integer"
     1155                        },
     1156                        "force": {
     1157                            "required": false,
     1158                            "default": false,
     1159                            "description": "Whether to bypass trash and force deletion.",
     1160                            "type": "boolean"
     1161                        }
     1162                    }
     1163                }
     1164            ]
     1165        },
     1166        "/wp/v2/pages/(?P<parent>[\\d]+)/revisions": {
     1167            "namespace": "wp/v2",
     1168            "methods": [
     1169                "GET"
     1170            ],
     1171            "endpoints": [
     1172                {
     1173                    "methods": [
     1174                        "GET"
     1175                    ],
     1176                    "args": {
     1177                        "parent": {
     1178                            "required": false,
     1179                            "description": "The ID for the parent of the object.",
     1180                            "type": "integer"
     1181                        },
     1182                        "context": {
     1183                            "required": false,
     1184                            "default": "view",
     1185                            "enum": [
     1186                                "view",
     1187                                "embed",
     1188                                "edit"
     1189                            ],
     1190                            "description": "Scope under which the request is made; determines fields present in response.",
     1191                            "type": "string"
     1192                        }
     1193                    }
     1194                }
     1195            ]
     1196        },
     1197        "/wp/v2/pages/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
     1198            "namespace": "wp/v2",
     1199            "methods": [
     1200                "GET",
     1201                "DELETE"
     1202            ],
     1203            "endpoints": [
     1204                {
     1205                    "methods": [
     1206                        "GET"
     1207                    ],
     1208                    "args": {
     1209                        "parent": {
     1210                            "required": false,
     1211                            "description": "The ID for the parent of the object.",
     1212                            "type": "integer"
     1213                        },
     1214                        "id": {
     1215                            "required": false,
     1216                            "description": "Unique identifier for the object.",
     1217                            "type": "integer"
     1218                        },
     1219                        "context": {
     1220                            "required": false,
     1221                            "default": "view",
     1222                            "enum": [
     1223                                "view",
     1224                                "embed",
     1225                                "edit"
     1226                            ],
     1227                            "description": "Scope under which the request is made; determines fields present in response.",
     1228                            "type": "string"
     1229                        }
     1230                    }
     1231                },
     1232                {
     1233                    "methods": [
     1234                        "DELETE"
     1235                    ],
     1236                    "args": {
     1237                        "parent": {
     1238                            "required": false,
     1239                            "description": "The ID for the parent of the object.",
     1240                            "type": "integer"
     1241                        },
     1242                        "id": {
     1243                            "required": false,
     1244                            "description": "Unique identifier for the object.",
     1245                            "type": "integer"
     1246                        },
     1247                        "force": {
     1248                            "required": false,
     1249                            "default": false,
     1250                            "description": "Required to be true, as revisions do not support trashing.",
     1251                            "type": "boolean"
     1252                        }
     1253                    }
     1254                }
     1255            ]
     1256        },
     1257        "/wp/v2/media": {
     1258            "namespace": "wp/v2",
     1259            "methods": [
     1260                "GET",
     1261                "POST"
     1262            ],
     1263            "endpoints": [
     1264                {
     1265                    "methods": [
     1266                        "GET"
     1267                    ],
     1268                    "args": {
     1269                        "context": {
     1270                            "required": false,
     1271                            "default": "view",
     1272                            "enum": [
     1273                                "view",
     1274                                "embed",
     1275                                "edit"
     1276                            ],
     1277                            "description": "Scope under which the request is made; determines fields present in response.",
     1278                            "type": "string"
     1279                        },
     1280                        "page": {
     1281                            "required": false,
     1282                            "default": 1,
     1283                            "description": "Current page of the collection.",
     1284                            "type": "integer"
     1285                        },
     1286                        "per_page": {
     1287                            "required": false,
     1288                            "default": 10,
     1289                            "description": "Maximum number of items to be returned in result set.",
     1290                            "type": "integer"
     1291                        },
     1292                        "search": {
     1293                            "required": false,
     1294                            "description": "Limit results to those matching a string.",
     1295                            "type": "string"
     1296                        },
     1297                        "after": {
     1298                            "required": false,
     1299                            "description": "Limit response to posts published after a given ISO8601 compliant date.",
     1300                            "type": "string"
     1301                        },
     1302                        "author": {
     1303                            "required": false,
     1304                            "default": [],
     1305                            "description": "Limit result set to posts assigned to specific authors.",
     1306                            "type": "array",
     1307                            "items": {
     1308                                "type": "integer"
     1309                            }
     1310                        },
     1311                        "author_exclude": {
     1312                            "required": false,
     1313                            "default": [],
     1314                            "description": "Ensure result set excludes posts assigned to specific authors.",
     1315                            "type": "array",
     1316                            "items": {
     1317                                "type": "integer"
     1318                            }
     1319                        },
     1320                        "before": {
     1321                            "required": false,
     1322                            "description": "Limit response to posts published before a given ISO8601 compliant date.",
     1323                            "type": "string"
     1324                        },
     1325                        "exclude": {
     1326                            "required": false,
     1327                            "default": [],
     1328                            "description": "Ensure result set excludes specific IDs.",
     1329                            "type": "array",
     1330                            "items": {
     1331                                "type": "integer"
     1332                            }
     1333                        },
     1334                        "include": {
     1335                            "required": false,
     1336                            "default": [],
     1337                            "description": "Limit result set to specific IDs.",
     1338                            "type": "array",
     1339                            "items": {
     1340                                "type": "integer"
     1341                            }
     1342                        },
     1343                        "offset": {
     1344                            "required": false,
     1345                            "description": "Offset the result set by a specific number of items.",
     1346                            "type": "integer"
     1347                        },
     1348                        "order": {
     1349                            "required": false,
     1350                            "default": "desc",
     1351                            "enum": [
     1352                                "asc",
     1353                                "desc"
     1354                            ],
     1355                            "description": "Order sort attribute ascending or descending.",
     1356                            "type": "string"
     1357                        },
     1358                        "orderby": {
     1359                            "required": false,
     1360                            "default": "date",
     1361                            "enum": [
     1362                                "date",
     1363                                "relevance",
     1364                                "id",
     1365                                "include",
     1366                                "title",
     1367                                "slug"
     1368                            ],
     1369                            "description": "Sort collection by object attribute.",
     1370                            "type": "string"
     1371                        },
     1372                        "parent": {
     1373                            "required": false,
     1374                            "default": [],
     1375                            "description": "Limit result set to those of particular parent IDs.",
     1376                            "type": "array",
     1377                            "items": {
     1378                                "type": "integer"
     1379                            }
     1380                        },
     1381                        "parent_exclude": {
     1382                            "required": false,
     1383                            "default": [],
     1384                            "description": "Limit result set to all items except those of a particular parent ID.",
     1385                            "type": "array",
     1386                            "items": {
     1387                                "type": "integer"
     1388                            }
     1389                        },
     1390                        "slug": {
     1391                            "required": false,
     1392                            "description": "Limit result set to posts with one or more specific slugs.",
     1393                            "type": "array",
     1394                            "items": {
     1395                                "type": "string"
     1396                            }
     1397                        },
     1398                        "status": {
     1399                            "required": false,
     1400                            "default": "inherit",
     1401                            "description": "Limit result set to posts assigned one or more statuses.",
     1402                            "type": "array",
     1403                            "items": {
     1404                                "enum": [
     1405                                    "inherit",
     1406                                    "private",
     1407                                    "trash"
     1408                                ],
     1409                                "type": "string"
     1410                            }
     1411                        },
     1412                        "media_type": {
     1413                            "required": false,
     1414                            "enum": [
     1415                                "image",
     1416                                "video",
     1417                                "text",
     1418                                "application",
     1419                                "audio"
     1420                            ],
     1421                            "description": "Limit result set to attachments of a particular media type.",
     1422                            "type": "string"
     1423                        },
     1424                        "mime_type": {
     1425                            "required": false,
     1426                            "description": "Limit result set to attachments of a particular MIME type.",
     1427                            "type": "string"
     1428                        }
     1429                    }
     1430                },
     1431                {
     1432                    "methods": [
     1433                        "POST"
     1434                    ],
     1435                    "args": {
     1436                        "date": {
     1437                            "required": false,
     1438                            "description": "The date the object was published, in the site's timezone.",
     1439                            "type": "string"
     1440                        },
     1441                        "date_gmt": {
     1442                            "required": false,
     1443                            "description": "The date the object was published, as GMT.",
     1444                            "type": "string"
     1445                        },
     1446                        "slug": {
     1447                            "required": false,
     1448                            "description": "An alphanumeric identifier for the object unique to its type.",
     1449                            "type": "string"
     1450                        },
     1451                        "status": {
     1452                            "required": false,
     1453                            "enum": [
     1454                                "publish",
     1455                                "future",
     1456                                "draft",
     1457                                "pending",
     1458                                "private"
     1459                            ],
     1460                            "description": "A named status for the object.",
     1461                            "type": "string"
     1462                        },
     1463                        "title": {
     1464                            "required": false,
     1465                            "description": "The title for the object.",
     1466                            "type": "object"
     1467                        },
     1468                        "author": {
     1469                            "required": false,
     1470                            "description": "The ID for the author of the object.",
     1471                            "type": "integer"
     1472                        },
     1473                        "comment_status": {
     1474                            "required": false,
     1475                            "enum": [
     1476                                "open",
     1477                                "closed"
     1478                            ],
     1479                            "description": "Whether or not comments are open on the object.",
     1480                            "type": "string"
     1481                        },
     1482                        "ping_status": {
     1483                            "required": false,
     1484                            "enum": [
     1485                                "open",
     1486                                "closed"
     1487                            ],
     1488                            "description": "Whether or not the object can be pinged.",
     1489                            "type": "string"
     1490                        },
     1491                        "meta": {
     1492                            "required": false,
     1493                            "description": "Meta fields.",
     1494                            "type": "object"
     1495                        },
     1496                        "template": {
     1497                            "required": false,
     1498                            "enum": [
     1499                                ""
     1500                            ],
     1501                            "description": "The theme file to use to display the object.",
     1502                            "type": "string"
     1503                        },
     1504                        "alt_text": {
     1505                            "required": false,
     1506                            "description": "Alternative text to display when attachment is not displayed.",
     1507                            "type": "string"
     1508                        },
     1509                        "caption": {
     1510                            "required": false,
     1511                            "description": "The attachment caption.",
     1512                            "type": "object"
     1513                        },
     1514                        "description": {
     1515                            "required": false,
     1516                            "description": "The attachment description.",
     1517                            "type": "object"
     1518                        },
     1519                        "post": {
     1520                            "required": false,
     1521                            "description": "The ID for the associated post of the attachment.",
     1522                            "type": "integer"
     1523                        }
     1524                    }
     1525                }
     1526            ],
     1527            "_links": {
     1528                "self": "http://example.org/?rest_route=/wp/v2/media"
     1529            }
     1530        },
     1531        "/wp/v2/media/(?P<id>[\\d]+)": {
     1532            "namespace": "wp/v2",
     1533            "methods": [
     1534                "GET",
     1535                "POST",
     1536                "PUT",
     1537                "PATCH",
     1538                "DELETE"
     1539            ],
     1540            "endpoints": [
     1541                {
     1542                    "methods": [
     1543                        "GET"
     1544                    ],
     1545                    "args": {
     1546                        "id": {
     1547                            "required": false,
     1548                            "description": "Unique identifier for the object.",
     1549                            "type": "integer"
     1550                        },
     1551                        "context": {
     1552                            "required": false,
     1553                            "default": "view",
     1554                            "enum": [
     1555                                "view",
     1556                                "embed",
     1557                                "edit"
     1558                            ],
     1559                            "description": "Scope under which the request is made; determines fields present in response.",
     1560                            "type": "string"
     1561                        }
     1562                    }
     1563                },
     1564                {
     1565                    "methods": [
     1566                        "POST",
     1567                        "PUT",
     1568                        "PATCH"
     1569                    ],
     1570                    "args": {
     1571                        "id": {
     1572                            "required": false,
     1573                            "description": "Unique identifier for the object.",
     1574                            "type": "integer"
     1575                        },
     1576                        "date": {
     1577                            "required": false,
     1578                            "description": "The date the object was published, in the site's timezone.",
     1579                            "type": "string"
     1580                        },
     1581                        "date_gmt": {
     1582                            "required": false,
     1583                            "description": "The date the object was published, as GMT.",
     1584                            "type": "string"
     1585                        },
     1586                        "slug": {
     1587                            "required": false,
     1588                            "description": "An alphanumeric identifier for the object unique to its type.",
     1589                            "type": "string"
     1590                        },
     1591                        "status": {
     1592                            "required": false,
     1593                            "enum": [
     1594                                "publish",
     1595                                "future",
     1596                                "draft",
     1597                                "pending",
     1598                                "private"
     1599                            ],
     1600                            "description": "A named status for the object.",
     1601                            "type": "string"
     1602                        },
     1603                        "title": {
     1604                            "required": false,
     1605                            "description": "The title for the object.",
     1606                            "type": "object"
     1607                        },
     1608                        "author": {
     1609                            "required": false,
     1610                            "description": "The ID for the author of the object.",
     1611                            "type": "integer"
     1612                        },
     1613                        "comment_status": {
     1614                            "required": false,
     1615                            "enum": [
     1616                                "open",
     1617                                "closed"
     1618                            ],
     1619                            "description": "Whether or not comments are open on the object.",
     1620                            "type": "string"
     1621                        },
     1622                        "ping_status": {
     1623                            "required": false,
     1624                            "enum": [
     1625                                "open",
     1626                                "closed"
     1627                            ],
     1628                            "description": "Whether or not the object can be pinged.",
     1629                            "type": "string"
     1630                        },
     1631                        "meta": {
     1632                            "required": false,
     1633                            "description": "Meta fields.",
     1634                            "type": "object"
     1635                        },
     1636                        "template": {
     1637                            "required": false,
     1638                            "enum": [
     1639                                ""
     1640                            ],
     1641                            "description": "The theme file to use to display the object.",
     1642                            "type": "string"
     1643                        },
     1644                        "alt_text": {
     1645                            "required": false,
     1646                            "description": "Alternative text to display when attachment is not displayed.",
     1647                            "type": "string"
     1648                        },
     1649                        "caption": {
     1650                            "required": false,
     1651                            "description": "The attachment caption.",
     1652                            "type": "object"
     1653                        },
     1654                        "description": {
     1655                            "required": false,
     1656                            "description": "The attachment description.",
     1657                            "type": "object"
     1658                        },
     1659                        "post": {
     1660                            "required": false,
     1661                            "description": "The ID for the associated post of the attachment.",
     1662                            "type": "integer"
     1663                        }
     1664                    }
     1665                },
     1666                {
     1667                    "methods": [
     1668                        "DELETE"
     1669                    ],
     1670                    "args": {
     1671                        "id": {
     1672                            "required": false,
     1673                            "description": "Unique identifier for the object.",
     1674                            "type": "integer"
     1675                        },
     1676                        "force": {
     1677                            "required": false,
     1678                            "default": false,
     1679                            "description": "Whether to bypass trash and force deletion.",
     1680                            "type": "boolean"
     1681                        }
     1682                    }
     1683                }
     1684            ]
     1685        },
     1686        "/wp/v2/types": {
     1687            "namespace": "wp/v2",
     1688            "methods": [
     1689                "GET"
     1690            ],
     1691            "endpoints": [
     1692                {
     1693                    "methods": [
     1694                        "GET"
     1695                    ],
     1696                    "args": {
     1697                        "context": {
     1698                            "required": false,
     1699                            "default": "view",
     1700                            "enum": [
     1701                                "view",
     1702                                "embed",
     1703                                "edit"
     1704                            ],
     1705                            "description": "Scope under which the request is made; determines fields present in response.",
     1706                            "type": "string"
     1707                        }
     1708                    }
     1709                }
     1710            ],
     1711            "_links": {
     1712                "self": "http://example.org/?rest_route=/wp/v2/types"
     1713            }
     1714        },
     1715        "/wp/v2/types/(?P<type>[\\w-]+)": {
     1716            "namespace": "wp/v2",
     1717            "methods": [
     1718                "GET"
     1719            ],
     1720            "endpoints": [
     1721                {
     1722                    "methods": [
     1723                        "GET"
     1724                    ],
     1725                    "args": {
     1726                        "type": {
     1727                            "required": false,
     1728                            "description": "An alphanumeric identifier for the post type.",
     1729                            "type": "string"
     1730                        },
     1731                        "context": {
     1732                            "required": false,
     1733                            "default": "view",
     1734                            "enum": [
     1735                                "view",
     1736                                "embed",
     1737                                "edit"
     1738                            ],
     1739                            "description": "Scope under which the request is made; determines fields present in response.",
     1740                            "type": "string"
     1741                        }
     1742                    }
     1743                }
     1744            ]
     1745        },
     1746        "/wp/v2/statuses": {
     1747            "namespace": "wp/v2",
     1748            "methods": [
     1749                "GET"
     1750            ],
     1751            "endpoints": [
     1752                {
     1753                    "methods": [
     1754                        "GET"
     1755                    ],
     1756                    "args": {
     1757                        "context": {
     1758                            "required": false,
     1759                            "default": "view",
     1760                            "enum": [
     1761                                "view",
     1762                                "embed",
     1763                                "edit"
     1764                            ],
     1765                            "description": "Scope under which the request is made; determines fields present in response.",
     1766                            "type": "string"
     1767                        }
     1768                    }
     1769                }
     1770            ],
     1771            "_links": {
     1772                "self": "http://example.org/?rest_route=/wp/v2/statuses"
     1773            }
     1774        },
     1775        "/wp/v2/statuses/(?P<status>[\\w-]+)": {
     1776            "namespace": "wp/v2",
     1777            "methods": [
     1778                "GET"
     1779            ],
     1780            "endpoints": [
     1781                {
     1782                    "methods": [
     1783                        "GET"
     1784                    ],
     1785                    "args": {
     1786                        "status": {
     1787                            "required": false,
     1788                            "description": "An alphanumeric identifier for the status.",
     1789                            "type": "string"
     1790                        },
     1791                        "context": {
     1792                            "required": false,
     1793                            "default": "view",
     1794                            "enum": [
     1795                                "view",
     1796                                "embed",
     1797                                "edit"
     1798                            ],
     1799                            "description": "Scope under which the request is made; determines fields present in response.",
     1800                            "type": "string"
     1801                        }
     1802                    }
     1803                }
     1804            ]
     1805        },
     1806        "/wp/v2/taxonomies": {
     1807            "namespace": "wp/v2",
     1808            "methods": [
     1809                "GET"
     1810            ],
     1811            "endpoints": [
     1812                {
     1813                    "methods": [
     1814                        "GET"
     1815                    ],
     1816                    "args": {
     1817                        "context": {
     1818                            "required": false,
     1819                            "default": "view",
     1820                            "enum": [
     1821                                "view",
     1822                                "embed",
     1823                                "edit"
     1824                            ],
     1825                            "description": "Scope under which the request is made; determines fields present in response.",
     1826                            "type": "string"
     1827                        },
     1828                        "type": {
     1829                            "required": false,
     1830                            "description": "Limit results to taxonomies associated with a specific post type.",
     1831                            "type": "string"
     1832                        }
     1833                    }
     1834                }
     1835            ],
     1836            "_links": {
     1837                "self": "http://example.org/?rest_route=/wp/v2/taxonomies"
     1838            }
     1839        },
     1840        "/wp/v2/taxonomies/(?P<taxonomy>[\\w-]+)": {
     1841            "namespace": "wp/v2",
     1842            "methods": [
     1843                "GET"
     1844            ],
     1845            "endpoints": [
     1846                {
     1847                    "methods": [
     1848                        "GET"
     1849                    ],
     1850                    "args": {
     1851                        "taxonomy": {
     1852                            "required": false,
     1853                            "description": "An alphanumeric identifier for the taxonomy.",
     1854                            "type": "string"
     1855                        },
     1856                        "context": {
     1857                            "required": false,
     1858                            "default": "view",
     1859                            "enum": [
     1860                                "view",
     1861                                "embed",
     1862                                "edit"
     1863                            ],
     1864                            "description": "Scope under which the request is made; determines fields present in response.",
     1865                            "type": "string"
     1866                        }
     1867                    }
     1868                }
     1869            ]
     1870        },
     1871        "/wp/v2/categories": {
     1872            "namespace": "wp/v2",
     1873            "methods": [
     1874                "GET",
     1875                "POST"
     1876            ],
     1877            "endpoints": [
     1878                {
     1879                    "methods": [
     1880                        "GET"
     1881                    ],
     1882                    "args": {
     1883                        "context": {
     1884                            "required": false,
     1885                            "default": "view",
     1886                            "enum": [
     1887                                "view",
     1888                                "embed",
     1889                                "edit"
     1890                            ],
     1891                            "description": "Scope under which the request is made; determines fields present in response.",
     1892                            "type": "string"
     1893                        },
     1894                        "page": {
     1895                            "required": false,
     1896                            "default": 1,
     1897                            "description": "Current page of the collection.",
     1898                            "type": "integer"
     1899                        },
     1900                        "per_page": {
     1901                            "required": false,
     1902                            "default": 10,
     1903                            "description": "Maximum number of items to be returned in result set.",
     1904                            "type": "integer"
     1905                        },
     1906                        "search": {
     1907                            "required": false,
     1908                            "description": "Limit results to those matching a string.",
     1909                            "type": "string"
     1910                        },
     1911                        "exclude": {
     1912                            "required": false,
     1913                            "default": [],
     1914                            "description": "Ensure result set excludes specific IDs.",
     1915                            "type": "array",
     1916                            "items": {
     1917                                "type": "integer"
     1918                            }
     1919                        },
     1920                        "include": {
     1921                            "required": false,
     1922                            "default": [],
     1923                            "description": "Limit result set to specific IDs.",
     1924                            "type": "array",
     1925                            "items": {
     1926                                "type": "integer"
     1927                            }
     1928                        },
     1929                        "order": {
     1930                            "required": false,
     1931                            "default": "asc",
     1932                            "enum": [
     1933                                "asc",
     1934                                "desc"
     1935                            ],
     1936                            "description": "Order sort attribute ascending or descending.",
     1937                            "type": "string"
     1938                        },
     1939                        "orderby": {
     1940                            "required": false,
     1941                            "default": "name",
     1942                            "enum": [
     1943                                "id",
     1944                                "include",
     1945                                "name",
     1946                                "slug",
     1947                                "term_group",
     1948                                "description",
     1949                                "count"
     1950                            ],
     1951                            "description": "Sort collection by term attribute.",
     1952                            "type": "string"
     1953                        },
     1954                        "hide_empty": {
     1955                            "required": false,
     1956                            "default": false,
     1957                            "description": "Whether to hide terms not assigned to any posts.",
     1958                            "type": "boolean"
     1959                        },
     1960                        "parent": {
     1961                            "required": false,
     1962                            "description": "Limit result set to terms assigned to a specific parent.",
     1963                            "type": "integer"
     1964                        },
     1965                        "post": {
     1966                            "required": false,
     1967                            "description": "Limit result set to terms assigned to a specific post.",
     1968                            "type": "integer"
     1969                        },
     1970                        "slug": {
     1971                            "required": false,
     1972                            "description": "Limit result set to terms with a specific slug.",
     1973                            "type": "string"
     1974                        }
     1975                    }
     1976                },
     1977                {
     1978                    "methods": [
     1979                        "POST"
     1980                    ],
     1981                    "args": {
     1982                        "description": {
     1983                            "required": false,
     1984                            "description": "HTML description of the term.",
     1985                            "type": "string"
     1986                        },
     1987                        "name": {
     1988                            "required": true,
     1989                            "description": "HTML title for the term.",
     1990                            "type": "string"
     1991                        },
     1992                        "slug": {
     1993                            "required": false,
     1994                            "description": "An alphanumeric identifier for the term unique to its type.",
     1995                            "type": "string"
     1996                        },
     1997                        "parent": {
     1998                            "required": false,
     1999                            "description": "The parent term ID.",
     2000                            "type": "integer"
     2001                        },
     2002                        "meta": {
     2003                            "required": false,
     2004                            "description": "Meta fields.",
     2005                            "type": "object"
     2006                        }
     2007                    }
     2008                }
     2009            ],
     2010            "_links": {
     2011                "self": "http://example.org/?rest_route=/wp/v2/categories"
     2012            }
     2013        },
     2014        "/wp/v2/categories/(?P<id>[\\d]+)": {
     2015            "namespace": "wp/v2",
     2016            "methods": [
     2017                "GET",
     2018                "POST",
     2019                "PUT",
     2020                "PATCH",
     2021                "DELETE"
     2022            ],
     2023            "endpoints": [
     2024                {
     2025                    "methods": [
     2026                        "GET"
     2027                    ],
     2028                    "args": {
     2029                        "id": {
     2030                            "required": false,
     2031                            "description": "Unique identifier for the term.",
     2032                            "type": "integer"
     2033                        },
     2034                        "context": {
     2035                            "required": false,
     2036                            "default": "view",
     2037                            "enum": [
     2038                                "view",
     2039                                "embed",
     2040                                "edit"
     2041                            ],
     2042                            "description": "Scope under which the request is made; determines fields present in response.",
     2043                            "type": "string"
     2044                        }
     2045                    }
     2046                },
     2047                {
     2048                    "methods": [
     2049                        "POST",
     2050                        "PUT",
     2051                        "PATCH"
     2052                    ],
     2053                    "args": {
     2054                        "id": {
     2055                            "required": false,
     2056                            "description": "Unique identifier for the term.",
     2057                            "type": "integer"
     2058                        },
     2059                        "description": {
     2060                            "required": false,
     2061                            "description": "HTML description of the term.",
     2062                            "type": "string"
     2063                        },
     2064                        "name": {
     2065                            "required": false,
     2066                            "description": "HTML title for the term.",
     2067                            "type": "string"
     2068                        },
     2069                        "slug": {
     2070                            "required": false,
     2071                            "description": "An alphanumeric identifier for the term unique to its type.",
     2072                            "type": "string"
     2073                        },
     2074                        "parent": {
     2075                            "required": false,
     2076                            "description": "The parent term ID.",
     2077                            "type": "integer"
     2078                        },
     2079                        "meta": {
     2080                            "required": false,
     2081                            "description": "Meta fields.",
     2082                            "type": "object"
     2083                        }
     2084                    }
     2085                },
     2086                {
     2087                    "methods": [
     2088                        "DELETE"
     2089                    ],
     2090                    "args": {
     2091                        "id": {
     2092                            "required": false,
     2093                            "description": "Unique identifier for the term.",
     2094                            "type": "integer"
     2095                        },
     2096                        "force": {
     2097                            "required": false,
     2098                            "default": false,
     2099                            "description": "Required to be true, as terms do not support trashing.",
     2100                            "type": "boolean"
     2101                        }
     2102                    }
     2103                }
     2104            ]
     2105        },
     2106        "/wp/v2/tags": {
     2107            "namespace": "wp/v2",
     2108            "methods": [
     2109                "GET",
     2110                "POST"
     2111            ],
     2112            "endpoints": [
     2113                {
     2114                    "methods": [
     2115                        "GET"
     2116                    ],
     2117                    "args": {
     2118                        "context": {
     2119                            "required": false,
     2120                            "default": "view",
     2121                            "enum": [
     2122                                "view",
     2123                                "embed",
     2124                                "edit"
     2125                            ],
     2126                            "description": "Scope under which the request is made; determines fields present in response.",
     2127                            "type": "string"
     2128                        },
     2129                        "page": {
     2130                            "required": false,
     2131                            "default": 1,
     2132                            "description": "Current page of the collection.",
     2133                            "type": "integer"
     2134                        },
     2135                        "per_page": {
     2136                            "required": false,
     2137                            "default": 10,
     2138                            "description": "Maximum number of items to be returned in result set.",
     2139                            "type": "integer"
     2140                        },
     2141                        "search": {
     2142                            "required": false,
     2143                            "description": "Limit results to those matching a string.",
     2144                            "type": "string"
     2145                        },
     2146                        "exclude": {
     2147                            "required": false,
     2148                            "default": [],
     2149                            "description": "Ensure result set excludes specific IDs.",
     2150                            "type": "array",
     2151                            "items": {
     2152                                "type": "integer"
     2153                            }
     2154                        },
     2155                        "include": {
     2156                            "required": false,
     2157                            "default": [],
     2158                            "description": "Limit result set to specific IDs.",
     2159                            "type": "array",
     2160                            "items": {
     2161                                "type": "integer"
     2162                            }
     2163                        },
     2164                        "offset": {
     2165                            "required": false,
     2166                            "description": "Offset the result set by a specific number of items.",
     2167                            "type": "integer"
     2168                        },
     2169                        "order": {
     2170                            "required": false,
     2171                            "default": "asc",
     2172                            "enum": [
     2173                                "asc",
     2174                                "desc"
     2175                            ],
     2176                            "description": "Order sort attribute ascending or descending.",
     2177                            "type": "string"
     2178                        },
     2179                        "orderby": {
     2180                            "required": false,
     2181                            "default": "name",
     2182                            "enum": [
     2183                                "id",
     2184                                "include",
     2185                                "name",
     2186                                "slug",
     2187                                "term_group",
     2188                                "description",
     2189                                "count"
     2190                            ],
     2191                            "description": "Sort collection by term attribute.",
     2192                            "type": "string"
     2193                        },
     2194                        "hide_empty": {
     2195                            "required": false,
     2196                            "default": false,
     2197                            "description": "Whether to hide terms not assigned to any posts.",
     2198                            "type": "boolean"
     2199                        },
     2200                        "post": {
     2201                            "required": false,
     2202                            "description": "Limit result set to terms assigned to a specific post.",
     2203                            "type": "integer"
     2204                        },
     2205                        "slug": {
     2206                            "required": false,
     2207                            "description": "Limit result set to terms with a specific slug.",
     2208                            "type": "string"
     2209                        }
     2210                    }
     2211                },
     2212                {
     2213                    "methods": [
     2214                        "POST"
     2215                    ],
     2216                    "args": {
     2217                        "description": {
     2218                            "required": false,
     2219                            "description": "HTML description of the term.",
     2220                            "type": "string"
     2221                        },
     2222                        "name": {
     2223                            "required": true,
     2224                            "description": "HTML title for the term.",
     2225                            "type": "string"
     2226                        },
     2227                        "slug": {
     2228                            "required": false,
     2229                            "description": "An alphanumeric identifier for the term unique to its type.",
     2230                            "type": "string"
     2231                        },
     2232                        "meta": {
     2233                            "required": false,
     2234                            "description": "Meta fields.",
     2235                            "type": "object"
     2236                        }
     2237                    }
     2238                }
     2239            ],
     2240            "_links": {
     2241                "self": "http://example.org/?rest_route=/wp/v2/tags"
     2242            }
     2243        },
     2244        "/wp/v2/tags/(?P<id>[\\d]+)": {
     2245            "namespace": "wp/v2",
     2246            "methods": [
     2247                "GET",
     2248                "POST",
     2249                "PUT",
     2250                "PATCH",
     2251                "DELETE"
     2252            ],
     2253            "endpoints": [
     2254                {
     2255                    "methods": [
     2256                        "GET"
     2257                    ],
     2258                    "args": {
     2259                        "id": {
     2260                            "required": false,
     2261                            "description": "Unique identifier for the term.",
     2262                            "type": "integer"
     2263                        },
     2264                        "context": {
     2265                            "required": false,
     2266                            "default": "view",
     2267                            "enum": [
     2268                                "view",
     2269                                "embed",
     2270                                "edit"
     2271                            ],
     2272                            "description": "Scope under which the request is made; determines fields present in response.",
     2273                            "type": "string"
     2274                        }
     2275                    }
     2276                },
     2277                {
     2278                    "methods": [
     2279                        "POST",
     2280                        "PUT",
     2281                        "PATCH"
     2282                    ],
     2283                    "args": {
     2284                        "id": {
     2285                            "required": false,
     2286                            "description": "Unique identifier for the term.",
     2287                            "type": "integer"
     2288                        },
     2289                        "description": {
     2290                            "required": false,
     2291                            "description": "HTML description of the term.",
     2292                            "type": "string"
     2293                        },
     2294                        "name": {
     2295                            "required": false,
     2296                            "description": "HTML title for the term.",
     2297                            "type": "string"
     2298                        },
     2299                        "slug": {
     2300                            "required": false,
     2301                            "description": "An alphanumeric identifier for the term unique to its type.",
     2302                            "type": "string"
     2303                        },
     2304                        "meta": {
     2305                            "required": false,
     2306                            "description": "Meta fields.",
     2307                            "type": "object"
     2308                        }
     2309                    }
     2310                },
     2311                {
     2312                    "methods": [
     2313                        "DELETE"
     2314                    ],
     2315                    "args": {
     2316                        "id": {
     2317                            "required": false,
     2318                            "description": "Unique identifier for the term.",
     2319                            "type": "integer"
     2320                        },
     2321                        "force": {
     2322                            "required": false,
     2323                            "default": false,
     2324                            "description": "Required to be true, as terms do not support trashing.",
     2325                            "type": "boolean"
     2326                        }
     2327                    }
     2328                }
     2329            ]
     2330        },
     2331        "/wp/v2/users": {
     2332            "namespace": "wp/v2",
     2333            "methods": [
     2334                "GET",
     2335                "POST"
     2336            ],
     2337            "endpoints": [
     2338                {
     2339                    "methods": [
     2340                        "GET"
     2341                    ],
     2342                    "args": {
     2343                        "context": {
     2344                            "required": false,
     2345                            "default": "view",
     2346                            "enum": [
     2347                                "view",
     2348                                "embed",
     2349                                "edit"
     2350                            ],
     2351                            "description": "Scope under which the request is made; determines fields present in response.",
     2352                            "type": "string"
     2353                        },
     2354                        "page": {
     2355                            "required": false,
     2356                            "default": 1,
     2357                            "description": "Current page of the collection.",
     2358                            "type": "integer"
     2359                        },
     2360                        "per_page": {
     2361                            "required": false,
     2362                            "default": 10,
     2363                            "description": "Maximum number of items to be returned in result set.",
     2364                            "type": "integer"
     2365                        },
     2366                        "search": {
     2367                            "required": false,
     2368                            "description": "Limit results to those matching a string.",
     2369                            "type": "string"
     2370                        },
     2371                        "exclude": {
     2372                            "required": false,
     2373                            "default": [],
     2374                            "description": "Ensure result set excludes specific IDs.",
     2375                            "type": "array",
     2376                            "items": {
     2377                                "type": "integer"
     2378                            }
     2379                        },
     2380                        "include": {
     2381                            "required": false,
     2382                            "default": [],
     2383                            "description": "Limit result set to specific IDs.",
     2384                            "type": "array",
     2385                            "items": {
     2386                                "type": "integer"
     2387                            }
     2388                        },
     2389                        "offset": {
     2390                            "required": false,
     2391                            "description": "Offset the result set by a specific number of items.",
     2392                            "type": "integer"
     2393                        },
     2394                        "order": {
     2395                            "required": false,
     2396                            "default": "asc",
     2397                            "enum": [
     2398                                "asc",
     2399                                "desc"
     2400                            ],
     2401                            "description": "Order sort attribute ascending or descending.",
     2402                            "type": "string"
     2403                        },
     2404                        "orderby": {
     2405                            "required": false,
     2406                            "default": "name",
     2407                            "enum": [
     2408                                "id",
     2409                                "include",
     2410                                "name",
     2411                                "registered_date",
     2412                                "slug",
     2413                                "email",
     2414                                "url"
     2415                            ],
     2416                            "description": "Sort collection by object attribute.",
     2417                            "type": "string"
     2418                        },
     2419                        "slug": {
     2420                            "required": false,
     2421                            "description": "Limit result set to users with a specific slug.",
     2422                            "type": "string"
     2423                        },
     2424                        "roles": {
     2425                            "required": false,
     2426                            "description": "Limit result set to users matching at least one specific role provided. Accepts csv list or single role.",
     2427                            "type": "array",
     2428                            "items": {
     2429                                "type": "string"
     2430                            }
     2431                        }
     2432                    }
     2433                },
     2434                {
     2435                    "methods": [
     2436                        "POST"
     2437                    ],
     2438                    "args": {
     2439                        "username": {
     2440                            "required": true,
     2441                            "description": "Login name for the user.",
     2442                            "type": "string"
     2443                        },
     2444                        "name": {
     2445                            "required": false,
     2446                            "description": "Display name for the user.",
     2447                            "type": "string"
     2448                        },
     2449                        "first_name": {
     2450                            "required": false,
     2451                            "description": "First name for the user.",
     2452                            "type": "string"
     2453                        },
     2454                        "last_name": {
     2455                            "required": false,
     2456                            "description": "Last name for the user.",
     2457                            "type": "string"
     2458                        },
     2459                        "email": {
     2460                            "required": true,
     2461                            "description": "The email address for the user.",
     2462                            "type": "string"
     2463                        },
     2464                        "url": {
     2465                            "required": false,
     2466                            "description": "URL of the user.",
     2467                            "type": "string"
     2468                        },
     2469                        "description": {
     2470                            "required": false,
     2471                            "description": "Description of the user.",
     2472                            "type": "string"
     2473                        },
     2474                        "locale": {
     2475                            "required": false,
     2476                            "enum": [
     2477                                "",
     2478                                "en_US",
     2479                                "de_DE",
     2480                                "en_GB",
     2481                                "es_ES"
     2482                            ],
     2483                            "description": "Locale for the user.",
     2484                            "type": "string"
     2485                        },
     2486                        "nickname": {
     2487                            "required": false,
     2488                            "description": "The nickname for the user.",
     2489                            "type": "string"
     2490                        },
     2491                        "slug": {
     2492                            "required": false,
     2493                            "description": "An alphanumeric identifier for the user.",
     2494                            "type": "string"
     2495                        },
     2496                        "roles": {
     2497                            "required": false,
     2498                            "description": "Roles assigned to the user.",
     2499                            "type": "array",
     2500                            "items": {
     2501                                "type": "string"
     2502                            }
     2503                        },
     2504                        "password": {
     2505                            "required": true,
     2506                            "description": "Password for the user (never included).",
     2507                            "type": "string"
     2508                        },
     2509                        "meta": {
     2510                            "required": false,
     2511                            "description": "Meta fields.",
     2512                            "type": "object"
     2513                        }
     2514                    }
     2515                }
     2516            ],
     2517            "_links": {
     2518                "self": "http://example.org/?rest_route=/wp/v2/users"
     2519            }
     2520        },
     2521        "/wp/v2/users/(?P<id>[\\d]+)": {
     2522            "namespace": "wp/v2",
     2523            "methods": [
     2524                "GET",
     2525                "POST",
     2526                "PUT",
     2527                "PATCH",
     2528                "DELETE"
     2529            ],
     2530            "endpoints": [
     2531                {
     2532                    "methods": [
     2533                        "GET"
     2534                    ],
     2535                    "args": {
     2536                        "id": {
     2537                            "required": false,
     2538                            "description": "Unique identifier for the user.",
     2539                            "type": "integer"
     2540                        },
     2541                        "context": {
     2542                            "required": false,
     2543                            "default": "view",
     2544                            "enum": [
     2545                                "view",
     2546                                "embed",
     2547                                "edit"
     2548                            ],
     2549                            "description": "Scope under which the request is made; determines fields present in response.",
     2550                            "type": "string"
     2551                        }
     2552                    }
     2553                },
     2554                {
     2555                    "methods": [
     2556                        "POST",
     2557                        "PUT",
     2558                        "PATCH"
     2559                    ],
     2560                    "args": {
     2561                        "id": {
     2562                            "required": false,
     2563                            "description": "Unique identifier for the user.",
     2564                            "type": "integer"
     2565                        },
     2566                        "username": {
     2567                            "required": false,
     2568                            "description": "Login name for the user.",
     2569                            "type": "string"
     2570                        },
     2571                        "name": {
     2572                            "required": false,
     2573                            "description": "Display name for the user.",
     2574                            "type": "string"
     2575                        },
     2576                        "first_name": {
     2577                            "required": false,
     2578                            "description": "First name for the user.",
     2579                            "type": "string"
     2580                        },
     2581                        "last_name": {
     2582                            "required": false,
     2583                            "description": "Last name for the user.",
     2584                            "type": "string"
     2585                        },
     2586                        "email": {
     2587                            "required": false,
     2588                            "description": "The email address for the user.",
     2589                            "type": "string"
     2590                        },
     2591                        "url": {
     2592                            "required": false,
     2593                            "description": "URL of the user.",
     2594                            "type": "string"
     2595                        },
     2596                        "description": {
     2597                            "required": false,
     2598                            "description": "Description of the user.",
     2599                            "type": "string"
     2600                        },
     2601                        "locale": {
     2602                            "required": false,
     2603                            "enum": [
     2604                                "",
     2605                                "en_US",
     2606                                "de_DE",
     2607                                "en_GB",
     2608                                "es_ES"
     2609                            ],
     2610                            "description": "Locale for the user.",
     2611                            "type": "string"
     2612                        },
     2613                        "nickname": {
     2614                            "required": false,
     2615                            "description": "The nickname for the user.",
     2616                            "type": "string"
     2617                        },
     2618                        "slug": {
     2619                            "required": false,
     2620                            "description": "An alphanumeric identifier for the user.",
     2621                            "type": "string"
     2622                        },
     2623                        "roles": {
     2624                            "required": false,
     2625                            "description": "Roles assigned to the user.",
     2626                            "type": "array",
     2627                            "items": {
     2628                                "type": "string"
     2629                            }
     2630                        },
     2631                        "password": {
     2632                            "required": false,
     2633                            "description": "Password for the user (never included).",
     2634                            "type": "string"
     2635                        },
     2636                        "meta": {
     2637                            "required": false,
     2638                            "description": "Meta fields.",
     2639                            "type": "object"
     2640                        }
     2641                    }
     2642                },
     2643                {
     2644                    "methods": [
     2645                        "DELETE"
     2646                    ],
     2647                    "args": {
     2648                        "id": {
     2649                            "required": false,
     2650                            "description": "Unique identifier for the user.",
     2651                            "type": "integer"
     2652                        },
     2653                        "force": {
     2654                            "required": false,
     2655                            "default": false,
     2656                            "description": "Required to be true, as users do not support trashing.",
     2657                            "type": "boolean"
     2658                        },
     2659                        "reassign": {
     2660                            "required": true,
     2661                            "description": "Reassign the deleted user's posts and links to this user ID.",
     2662                            "type": "integer"
     2663                        }
     2664                    }
     2665                }
     2666            ]
     2667        },
     2668        "/wp/v2/users/me": {
     2669            "namespace": "wp/v2",
     2670            "methods": [
     2671                "GET",
     2672                "POST",
     2673                "PUT",
     2674                "PATCH",
     2675                "DELETE"
     2676            ],
     2677            "endpoints": [
     2678                {
     2679                    "methods": [
     2680                        "GET"
     2681                    ],
     2682                    "args": {
     2683                        "context": {
     2684                            "required": false,
     2685                            "default": "view",
     2686                            "enum": [
     2687                                "view",
     2688                                "embed",
     2689                                "edit"
     2690                            ],
     2691                            "description": "Scope under which the request is made; determines fields present in response.",
     2692                            "type": "string"
     2693                        }
     2694                    }
     2695                },
     2696                {
     2697                    "methods": [
     2698                        "POST",
     2699                        "PUT",
     2700                        "PATCH"
     2701                    ],
     2702                    "args": {
     2703                        "username": {
     2704                            "required": false,
     2705                            "description": "Login name for the user.",
     2706                            "type": "string"
     2707                        },
     2708                        "name": {
     2709                            "required": false,
     2710                            "description": "Display name for the user.",
     2711                            "type": "string"
     2712                        },
     2713                        "first_name": {
     2714                            "required": false,
     2715                            "description": "First name for the user.",
     2716                            "type": "string"
     2717                        },
     2718                        "last_name": {
     2719                            "required": false,
     2720                            "description": "Last name for the user.",
     2721                            "type": "string"
     2722                        },
     2723                        "email": {
     2724                            "required": false,
     2725                            "description": "The email address for the user.",
     2726                            "type": "string"
     2727                        },
     2728                        "url": {
     2729                            "required": false,
     2730                            "description": "URL of the user.",
     2731                            "type": "string"
     2732                        },
     2733                        "description": {
     2734                            "required": false,
     2735                            "description": "Description of the user.",
     2736                            "type": "string"
     2737                        },
     2738                        "locale": {
     2739                            "required": false,
     2740                            "enum": [
     2741                                "",
     2742                                "en_US",
     2743                                "de_DE",
     2744                                "en_GB",
     2745                                "es_ES"
     2746                            ],
     2747                            "description": "Locale for the user.",
     2748                            "type": "string"
     2749                        },
     2750                        "nickname": {
     2751                            "required": false,
     2752                            "description": "The nickname for the user.",
     2753                            "type": "string"
     2754                        },
     2755                        "slug": {
     2756                            "required": false,
     2757                            "description": "An alphanumeric identifier for the user.",
     2758                            "type": "string"
     2759                        },
     2760                        "roles": {
     2761                            "required": false,
     2762                            "description": "Roles assigned to the user.",
     2763                            "type": "array",
     2764                            "items": {
     2765                                "type": "string"
     2766                            }
     2767                        },
     2768                        "password": {
     2769                            "required": false,
     2770                            "description": "Password for the user (never included).",
     2771                            "type": "string"
     2772                        },
     2773                        "meta": {
     2774                            "required": false,
     2775                            "description": "Meta fields.",
     2776                            "type": "object"
     2777                        }
     2778                    }
     2779                },
     2780                {
     2781                    "methods": [
     2782                        "DELETE"
     2783                    ],
     2784                    "args": {
     2785                        "force": {
     2786                            "required": false,
     2787                            "default": false,
     2788                            "description": "Required to be true, as users do not support trashing.",
     2789                            "type": "boolean"
     2790                        },
     2791                        "reassign": {
     2792                            "required": true,
     2793                            "description": "Reassign the deleted user's posts and links to this user ID.",
     2794                            "type": "integer"
     2795                        }
     2796                    }
     2797                }
     2798            ],
     2799            "_links": {
     2800                "self": "http://example.org/?rest_route=/wp/v2/users/me"
     2801            }
     2802        },
     2803        "/wp/v2/comments": {
     2804            "namespace": "wp/v2",
     2805            "methods": [
     2806                "GET",
     2807                "POST"
     2808            ],
     2809            "endpoints": [
     2810                {
     2811                    "methods": [
     2812                        "GET"
     2813                    ],
     2814                    "args": {
     2815                        "context": {
     2816                            "required": false,
     2817                            "default": "view",
     2818                            "enum": [
     2819                                "view",
     2820                                "embed",
     2821                                "edit"
     2822                            ],
     2823                            "description": "Scope under which the request is made; determines fields present in response.",
     2824                            "type": "string"
     2825                        },
     2826                        "page": {
     2827                            "required": false,
     2828                            "default": 1,
     2829                            "description": "Current page of the collection.",
     2830                            "type": "integer"
     2831                        },
     2832                        "per_page": {
     2833                            "required": false,
     2834                            "default": 10,
     2835                            "description": "Maximum number of items to be returned in result set.",
     2836                            "type": "integer"
     2837                        },
     2838                        "search": {
     2839                            "required": false,
     2840                            "description": "Limit results to those matching a string.",
     2841                            "type": "string"
     2842                        },
     2843                        "after": {
     2844                            "required": false,
     2845                            "description": "Limit response to comments published after a given ISO8601 compliant date.",
     2846                            "type": "string"
     2847                        },
     2848                        "author": {
     2849                            "required": false,
     2850                            "description": "Limit result set to comments assigned to specific user IDs. Requires authorization.",
     2851                            "type": "array",
     2852                            "items": {
     2853                                "type": "integer"
     2854                            }
     2855                        },
     2856                        "author_exclude": {
     2857                            "required": false,
     2858                            "description": "Ensure result set excludes comments assigned to specific user IDs. Requires authorization.",
     2859                            "type": "array",
     2860                            "items": {
     2861                                "type": "integer"
     2862                            }
     2863                        },
     2864                        "author_email": {
     2865                            "required": false,
     2866                            "description": "Limit result set to that from a specific author email. Requires authorization.",
     2867                            "type": "string"
     2868                        },
     2869                        "before": {
     2870                            "required": false,
     2871                            "description": "Limit response to comments published before a given ISO8601 compliant date.",
     2872                            "type": "string"
     2873                        },
     2874                        "exclude": {
     2875                            "required": false,
     2876                            "default": [],
     2877                            "description": "Ensure result set excludes specific IDs.",
     2878                            "type": "array",
     2879                            "items": {
     2880                                "type": "integer"
     2881                            }
     2882                        },
     2883                        "include": {
     2884                            "required": false,
     2885                            "default": [],
     2886                            "description": "Limit result set to specific IDs.",
     2887                            "type": "array",
     2888                            "items": {
     2889                                "type": "integer"
     2890                            }
     2891                        },
     2892                        "offset": {
     2893                            "required": false,
     2894                            "description": "Offset the result set by a specific number of items.",
     2895                            "type": "integer"
     2896                        },
     2897                        "order": {
     2898                            "required": false,
     2899                            "default": "desc",
     2900                            "enum": [
     2901                                "asc",
     2902                                "desc"
     2903                            ],
     2904                            "description": "Order sort attribute ascending or descending.",
     2905                            "type": "string"
     2906                        },
     2907                        "orderby": {
     2908                            "required": false,
     2909                            "default": "date_gmt",
     2910                            "enum": [
     2911                                "date",
     2912                                "date_gmt",
     2913                                "id",
     2914                                "include",
     2915                                "post",
     2916                                "parent",
     2917                                "type"
     2918                            ],
     2919                            "description": "Sort collection by object attribute.",
     2920                            "type": "string"
     2921                        },
     2922                        "parent": {
     2923                            "required": false,
     2924                            "default": [],
     2925                            "description": "Limit result set to comments of specific parent IDs.",
     2926                            "type": "array",
     2927                            "items": {
     2928                                "type": "integer"
     2929                            }
     2930                        },
     2931                        "parent_exclude": {
     2932                            "required": false,
     2933                            "default": [],
     2934                            "description": "Ensure result set excludes specific parent IDs.",
     2935                            "type": "array",
     2936                            "items": {
     2937                                "type": "integer"
     2938                            }
     2939                        },
     2940                        "post": {
     2941                            "required": false,
     2942                            "default": [],
     2943                            "description": "Limit result set to comments assigned to specific post IDs.",
     2944                            "type": "array",
     2945                            "items": {
     2946                                "type": "integer"
     2947                            }
     2948                        },
     2949                        "status": {
     2950                            "required": false,
     2951                            "default": "approve",
     2952                            "description": "Limit result set to comments assigned a specific status. Requires authorization.",
     2953                            "type": "string"
     2954                        },
     2955                        "type": {
     2956                            "required": false,
     2957                            "default": "comment",
     2958                            "description": "Limit result set to comments assigned a specific type. Requires authorization.",
     2959                            "type": "string"
     2960                        },
     2961                        "password": {
     2962                            "required": false,
     2963                            "description": "The password for the post if it is password protected.",
     2964                            "type": "string"
     2965                        }
     2966                    }
     2967                },
     2968                {
     2969                    "methods": [
     2970                        "POST"
     2971                    ],
     2972                    "args": {
     2973                        "author": {
     2974                            "required": false,
     2975                            "description": "The ID of the user object, if author was a user.",
     2976                            "type": "integer"
     2977                        },
     2978                        "author_email": {
     2979                            "required": false,
     2980                            "description": "Email address for the object author.",
     2981                            "type": "string"
     2982                        },
     2983                        "author_ip": {
     2984                            "required": false,
     2985                            "description": "IP address for the object author.",
     2986                            "type": "string"
     2987                        },
     2988                        "author_name": {
     2989                            "required": false,
     2990                            "description": "Display name for the object author.",
     2991                            "type": "string"
     2992                        },
     2993                        "author_url": {
     2994                            "required": false,
     2995                            "description": "URL for the object author.",
     2996                            "type": "string"
     2997                        },
     2998                        "author_user_agent": {
     2999                            "required": false,
     3000                            "description": "User agent for the object author.",
     3001                            "type": "string"
     3002                        },
     3003                        "content": {
     3004                            "required": false,
     3005                            "description": "The content for the object.",
     3006                            "type": "object"
     3007                        },
     3008                        "date": {
     3009                            "required": false,
     3010                            "description": "The date the object was published, in the site's timezone.",
     3011                            "type": "string"
     3012                        },
     3013                        "date_gmt": {
     3014                            "required": false,
     3015                            "description": "The date the object was published, as GMT.",
     3016                            "type": "string"
     3017                        },
     3018                        "parent": {
     3019                            "required": false,
     3020                            "default": 0,
     3021                            "description": "The ID for the parent of the object.",
     3022                            "type": "integer"
     3023                        },
     3024                        "post": {
     3025                            "required": false,
     3026                            "default": 0,
     3027                            "description": "The ID of the associated post object.",
     3028                            "type": "integer"
     3029                        },
     3030                        "status": {
     3031                            "required": false,
     3032                            "description": "State of the object.",
     3033                            "type": "string"
     3034                        },
     3035                        "meta": {
     3036                            "required": false,
     3037                            "description": "Meta fields.",
     3038                            "type": "object"
     3039                        }
     3040                    }
     3041                }
     3042            ],
     3043            "_links": {
     3044                "self": "http://example.org/?rest_route=/wp/v2/comments"
     3045            }
     3046        },
     3047        "/wp/v2/comments/(?P<id>[\\d]+)": {
     3048            "namespace": "wp/v2",
     3049            "methods": [
     3050                "GET",
     3051                "POST",
     3052                "PUT",
     3053                "PATCH",
     3054                "DELETE"
     3055            ],
     3056            "endpoints": [
     3057                {
     3058                    "methods": [
     3059                        "GET"
     3060                    ],
     3061                    "args": {
     3062                        "id": {
     3063                            "required": false,
     3064                            "description": "Unique identifier for the object.",
     3065                            "type": "integer"
     3066                        },
     3067                        "context": {
     3068                            "required": false,
     3069                            "default": "view",
     3070                            "enum": [
     3071                                "view",
     3072                                "embed",
     3073                                "edit"
     3074                            ],
     3075                            "description": "Scope under which the request is made; determines fields present in response.",
     3076                            "type": "string"
     3077                        },
     3078                        "password": {
     3079                            "required": false,
     3080                            "description": "The password for the post if it is password protected.",
     3081                            "type": "string"
     3082                        }
     3083                    }
     3084                },
     3085                {
     3086                    "methods": [
     3087                        "POST",
     3088                        "PUT",
     3089                        "PATCH"
     3090                    ],
     3091                    "args": {
     3092                        "id": {
     3093                            "required": false,
     3094                            "description": "Unique identifier for the object.",
     3095                            "type": "integer"
     3096                        },
     3097                        "author": {
     3098                            "required": false,
     3099                            "description": "The ID of the user object, if author was a user.",
     3100                            "type": "integer"
     3101                        },
     3102                        "author_email": {
     3103                            "required": false,
     3104                            "description": "Email address for the object author.",
     3105                            "type": "string"
     3106                        },
     3107                        "author_ip": {
     3108                            "required": false,
     3109                            "description": "IP address for the object author.",
     3110                            "type": "string"
     3111                        },
     3112                        "author_name": {
     3113                            "required": false,
     3114                            "description": "Display name for the object author.",
     3115                            "type": "string"
     3116                        },
     3117                        "author_url": {
     3118                            "required": false,
     3119                            "description": "URL for the object author.",
     3120                            "type": "string"
     3121                        },
     3122                        "author_user_agent": {
     3123                            "required": false,
     3124                            "description": "User agent for the object author.",
     3125                            "type": "string"
     3126                        },
     3127                        "content": {
     3128                            "required": false,
     3129                            "description": "The content for the object.",
     3130                            "type": "object"
     3131                        },
     3132                        "date": {
     3133                            "required": false,
     3134                            "description": "The date the object was published, in the site's timezone.",
     3135                            "type": "string"
     3136                        },
     3137                        "date_gmt": {
     3138                            "required": false,
     3139                            "description": "The date the object was published, as GMT.",
     3140                            "type": "string"
     3141                        },
     3142                        "parent": {
     3143                            "required": false,
     3144                            "description": "The ID for the parent of the object.",
     3145                            "type": "integer"
     3146                        },
     3147                        "post": {
     3148                            "required": false,
     3149                            "description": "The ID of the associated post object.",
     3150                            "type": "integer"
     3151                        },
     3152                        "status": {
     3153                            "required": false,
     3154                            "description": "State of the object.",
     3155                            "type": "string"
     3156                        },
     3157                        "meta": {
     3158                            "required": false,
     3159                            "description": "Meta fields.",
     3160                            "type": "object"
     3161                        }
     3162                    }
     3163                },
     3164                {
     3165                    "methods": [
     3166                        "DELETE"
     3167                    ],
     3168                    "args": {
     3169                        "id": {
     3170                            "required": false,
     3171                            "description": "Unique identifier for the object.",
     3172                            "type": "integer"
     3173                        },
     3174                        "force": {
     3175                            "required": false,
     3176                            "default": false,
     3177                            "description": "Whether to bypass trash and force deletion.",
     3178                            "type": "boolean"
     3179                        },
     3180                        "password": {
     3181                            "required": false,
     3182                            "description": "The password for the post if it is password protected.",
     3183                            "type": "string"
     3184                        }
     3185                    }
     3186                }
     3187            ]
     3188        },
     3189        "/wp/v2/settings": {
     3190            "namespace": "wp/v2",
     3191            "methods": [
     3192                "GET",
     3193                "POST",
     3194                "PUT",
     3195                "PATCH"
     3196            ],
     3197            "endpoints": [
     3198                {
     3199                    "methods": [
     3200                        "GET"
     3201                    ],
     3202                    "args": []
     3203                },
     3204                {
     3205                    "methods": [
     3206                        "POST",
     3207                        "PUT",
     3208                        "PATCH"
     3209                    ],
     3210                    "args": {
     3211                        "title": {
     3212                            "required": false,
     3213                            "description": "Site title.",
     3214                            "type": "string"
     3215                        },
     3216                        "description": {
     3217                            "required": false,
     3218                            "description": "Site tagline.",
     3219                            "type": "string"
     3220                        },
     3221                        "url": {
     3222                            "required": false,
     3223                            "description": "Site URL.",
     3224                            "type": "string"
     3225                        },
     3226                        "email": {
     3227                            "required": false,
     3228                            "description": "This address is used for admin purposes, like new user notification.",
     3229                            "type": "string"
     3230                        },
     3231                        "timezone": {
     3232                            "required": false,
     3233                            "description": "A city in the same timezone as you.",
     3234                            "type": "string"
     3235                        },
     3236                        "date_format": {
     3237                            "required": false,
     3238                            "description": "A date format for all date strings.",
     3239                            "type": "string"
     3240                        },
     3241                        "time_format": {
     3242                            "required": false,
     3243                            "description": "A time format for all time strings.",
     3244                            "type": "string"
     3245                        },
     3246                        "start_of_week": {
     3247                            "required": false,
     3248                            "description": "A day number of the week that the week should start on.",
     3249                            "type": "integer"
     3250                        },
     3251                        "language": {
     3252                            "required": false,
     3253                            "description": "WordPress locale code.",
     3254                            "type": "string"
     3255                        },
     3256                        "use_smilies": {
     3257                            "required": false,
     3258                            "description": "Convert emoticons like :-) and :-P to graphics on display.",
     3259                            "type": "boolean"
     3260                        },
     3261                        "default_category": {
     3262                            "required": false,
     3263                            "description": "Default post category.",
     3264                            "type": "integer"
     3265                        },
     3266                        "default_post_format": {
     3267                            "required": false,
     3268                            "description": "Default post format.",
     3269                            "type": "string"
     3270                        },
     3271                        "posts_per_page": {
     3272                            "required": false,
     3273                            "description": "Blog pages show at most.",
     3274                            "type": "integer"
     3275                        },
     3276                        "default_ping_status": {
     3277                            "required": false,
     3278                            "enum": [
     3279                                "open",
     3280                                "closed"
     3281                            ],
     3282                            "description": "Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.",
     3283                            "type": "string"
     3284                        },
     3285                        "default_comment_status": {
     3286                            "required": false,
     3287                            "enum": [
     3288                                "open",
     3289                                "closed"
     3290                            ],
     3291                            "description": "Allow people to post comments on new articles.",
     3292                            "type": "string"
     3293                        }
     3294                    }
     3295                }
     3296            ],
     3297            "_links": {
     3298                "self": "http://example.org/?rest_route=/wp/v2/settings"
     3299            }
     3300        }
     3301    }
     3302};
    123303
    13 mockedApiResponse.oembeds = {"code":"rest_missing_callback_param","message":"Missing parameter(s): url","data":{"status":400,"params":["url"]}};
     3304mockedApiResponse.oembed = {
     3305    "namespace": "oembed/1.0",
     3306    "routes": {
     3307        "/oembed/1.0": {
     3308            "namespace": "oembed/1.0",
     3309            "methods": [
     3310                "GET"
     3311            ],
     3312            "endpoints": [
     3313                {
     3314                    "methods": [
     3315                        "GET"
     3316                    ],
     3317                    "args": {
     3318                        "namespace": {
     3319                            "required": false,
     3320                            "default": "oembed/1.0"
     3321                        },
     3322                        "context": {
     3323                            "required": false,
     3324                            "default": "view"
     3325                        }
     3326                    }
     3327                }
     3328            ],
     3329            "_links": {
     3330                "self": "http://example.org/?rest_route=/oembed/1.0"
     3331            }
     3332        },
     3333        "/oembed/1.0/embed": {
     3334            "namespace": "oembed/1.0",
     3335            "methods": [
     3336                "GET"
     3337            ],
     3338            "endpoints": [
     3339                {
     3340                    "methods": [
     3341                        "GET"
     3342                    ],
     3343                    "args": {
     3344                        "url": {
     3345                            "required": true
     3346                        },
     3347                        "format": {
     3348                            "required": false,
     3349                            "default": "json"
     3350                        },
     3351                        "maxwidth": {
     3352                            "required": false,
     3353                            "default": 600
     3354                        }
     3355                    }
     3356                }
     3357            ],
     3358            "_links": {
     3359                "self": "http://example.org/?rest_route=/oembed/1.0/embed"
     3360            }
     3361        }
     3362    }
     3363};
    143364
    15 mockedApiResponse.PostsCollection = [{"id":3,"date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","guid":{"rendered":"http:\/\/example.org\/?p=3"},"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","slug":"post-title-19","type":"post","link":"http:\/\/example.org\/?p=3","title":{"rendered":"Post title 19"},"content":{"rendered":"<p>Updated content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post excerpt 19<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"}],"version-history":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3\/revisions"}],"wp:attachment":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Ftags&post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}];
     3365mockedApiResponse.oembeds = {
     3366    "code": "rest_missing_callback_param",
     3367    "message": "Missing parameter(s): url",
     3368    "data": {
     3369        "status": 400,
     3370        "params": [
     3371            "url"
     3372        ]
     3373    }
     3374};
    163375
    17 mockedApiResponse.PostModel = {"id":3,"date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","guid":{"rendered":"http:\/\/example.org\/?p=3"},"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","slug":"post-title-19","type":"post","link":"http:\/\/example.org\/?p=3","title":{"rendered":"Post title 19"},"content":{"rendered":"<p>Updated content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post excerpt 19<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[]};
     3376mockedApiResponse.PostsCollection = [
     3377    {
     3378        "id": 3,
     3379        "date": "2017-02-14T00:00:00",
     3380        "date_gmt": "2017-02-14T00:00:00",
     3381        "guid": {
     3382            "rendered": "http://example.org/?p=3"
     3383        },
     3384        "modified": "2017-02-14T00:00:00",
     3385        "modified_gmt": "2017-02-14T00:00:00",
     3386        "slug": "restapi-client-fixture-post",
     3387        "type": "post",
     3388        "link": "http://example.org/?p=3",
     3389        "title": {
     3390            "rendered": "REST API Client Fixture: Post"
     3391        },
     3392        "content": {
     3393            "rendered": "<p>Updated post content.</p>\n",
     3394            "protected": false
     3395        },
     3396        "excerpt": {
     3397            "rendered": "<p>REST API Client Fixture: Post</p>\n",
     3398            "protected": false
     3399        },
     3400        "author": 0,
     3401        "featured_media": 0,
     3402        "comment_status": "open",
     3403        "ping_status": "open",
     3404        "sticky": false,
     3405        "template": "",
     3406        "format": "standard",
     3407        "meta": [],
     3408        "categories": [
     3409            1
     3410        ],
     3411        "tags": [],
     3412        "_links": {
     3413            "self": [
     3414                {
     3415                    "href": "http://example.org/?rest_route=/wp/v2/posts/3"
     3416                }
     3417            ],
     3418            "collection": [
     3419                {
     3420                    "href": "http://example.org/?rest_route=/wp/v2/posts"
     3421                }
     3422            ],
     3423            "about": [
     3424                {
     3425                    "href": "http://example.org/?rest_route=/wp/v2/types/post"
     3426                }
     3427            ],
     3428            "replies": [
     3429                {
     3430                    "embeddable": true,
     3431                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"
     3432                }
     3433            ],
     3434            "version-history": [
     3435                {
     3436                    "href": "http://example.org/?rest_route=/wp/v2/posts/3/revisions"
     3437                }
     3438            ],
     3439            "wp:attachment": [
     3440                {
     3441                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"
     3442                }
     3443            ],
     3444            "wp:term": [
     3445                {
     3446                    "taxonomy": "category",
     3447                    "embeddable": true,
     3448                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"
     3449                },
     3450                {
     3451                    "taxonomy": "post_tag",
     3452                    "embeddable": true,
     3453                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Ftags&post=3"
     3454                }
     3455            ],
     3456            "curies": [
     3457                {
     3458                    "name": "wp",
     3459                    "href": "https://api.w.org/{rel}",
     3460                    "templated": true
     3461                }
     3462            ]
     3463        }
     3464    }
     3465];
    183466
    19 mockedApiResponse.postRevisions = [{"author":"2","date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","id":6,"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","parent":3,"slug":"3-revision-v1","guid":{"rendered":"http:\/\/example.org\/?p=6"},"title":{"rendered":"Post title 19"},"content":{"rendered":"<p>Updated content.<\/p>\n"},"excerpt":{"rendered":"<p>Post excerpt 19<\/p>\n"},"_links":{"parent":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3"}]}}];
     3467mockedApiResponse.PostModel = {
     3468    "id": 3,
     3469    "date": "2017-02-14T00:00:00",
     3470    "date_gmt": "2017-02-14T00:00:00",
     3471    "guid": {
     3472        "rendered": "http://example.org/?p=3"
     3473    },
     3474    "modified": "2017-02-14T00:00:00",
     3475    "modified_gmt": "2017-02-14T00:00:00",
     3476    "slug": "restapi-client-fixture-post",
     3477    "type": "post",
     3478    "link": "http://example.org/?p=3",
     3479    "title": {
     3480        "rendered": "REST API Client Fixture: Post"
     3481    },
     3482    "content": {
     3483        "rendered": "<p>Updated post content.</p>\n",
     3484        "protected": false
     3485    },
     3486    "excerpt": {
     3487        "rendered": "<p>REST API Client Fixture: Post</p>\n",
     3488        "protected": false
     3489    },
     3490    "author": 0,
     3491    "featured_media": 0,
     3492    "comment_status": "open",
     3493    "ping_status": "open",
     3494    "sticky": false,
     3495    "template": "",
     3496    "format": "standard",
     3497    "meta": [],
     3498    "categories": [
     3499        1
     3500    ],
     3501    "tags": []
     3502};
    203503
    21 mockedApiResponse.revision = {"code":"rest_post_invalid_id","message":"Invalid revision ID.","data":{"status":404}};
     3504mockedApiResponse.postRevisions = [
     3505    {
     3506        "author": "2",
     3507        "date": "2017-02-14T00:00:00",
     3508        "date_gmt": "2017-02-14T00:00:00",
     3509        "id": 4,
     3510        "modified": "2017-02-14T00:00:00",
     3511        "modified_gmt": "2017-02-14T00:00:00",
     3512        "parent": 3,
     3513        "slug": "3-revision-v1",
     3514        "guid": {
     3515            "rendered": "http://example.org/?p=4"
     3516        },
     3517        "title": {
     3518            "rendered": "REST API Client Fixture: Post"
     3519        },
     3520        "content": {
     3521            "rendered": "<p>Updated post content.</p>\n"
     3522        },
     3523        "excerpt": {
     3524            "rendered": "<p>REST API Client Fixture: Post</p>\n"
     3525        },
     3526        "_links": {
     3527            "parent": [
     3528                {
     3529                    "href": "http://example.org/?rest_route=/wp/v2/posts/3"
     3530                }
     3531            ]
     3532        }
     3533    }
     3534];
    223535
    23 mockedApiResponse.PagesCollection = [{"id":4,"date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","guid":{"rendered":"http:\/\/example.org\/?page_id=4"},"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","slug":"post-title-20","type":"page","link":"http:\/\/example.org\/?page_id=4","title":{"rendered":"Post title 20"},"content":{"rendered":"<p>Updated content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post excerpt 20<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/pages\/4"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"}],"version-history":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/pages\/4\/revisions"}],"wp:attachment":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}];
     3536mockedApiResponse.revision = {
     3537    "code": "rest_post_invalid_id",
     3538    "message": "Invalid revision ID.",
     3539    "data": {
     3540        "status": 404
     3541    }
     3542};
    243543
    25 mockedApiResponse.PageModel = {"id":4,"date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","guid":{"rendered":"http:\/\/example.org\/?page_id=4"},"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","slug":"post-title-20","type":"page","link":"http:\/\/example.org\/?page_id=4","title":{"rendered":"Post title 20"},"content":{"rendered":"<p>Updated content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post excerpt 20<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[]};
     3544mockedApiResponse.PagesCollection = [
     3545    {
     3546        "id": 5,
     3547        "date": "2017-02-14T00:00:00",
     3548        "date_gmt": "2017-02-14T00:00:00",
     3549        "guid": {
     3550            "rendered": "http://example.org/?page_id=5"
     3551        },
     3552        "modified": "2017-02-14T00:00:00",
     3553        "modified_gmt": "2017-02-14T00:00:00",
     3554        "slug": "restapi-client-fixture-page",
     3555        "type": "page",
     3556        "link": "http://example.org/?page_id=5",
     3557        "title": {
     3558            "rendered": "REST API Client Fixture: Page"
     3559        },
     3560        "content": {
     3561            "rendered": "<p>Updated page content.</p>\n",
     3562            "protected": false
     3563        },
     3564        "excerpt": {
     3565            "rendered": "<p>REST API Client Fixture: Page</p>\n",
     3566            "protected": false
     3567        },
     3568        "author": 0,
     3569        "featured_media": 0,
     3570        "parent": 0,
     3571        "menu_order": 0,
     3572        "comment_status": "closed",
     3573        "ping_status": "closed",
     3574        "template": "",
     3575        "meta": [],
     3576        "_links": {
     3577            "self": [
     3578                {
     3579                    "href": "http://example.org/?rest_route=/wp/v2/pages/5"
     3580                }
     3581            ],
     3582            "collection": [
     3583                {
     3584                    "href": "http://example.org/?rest_route=/wp/v2/pages"
     3585                }
     3586            ],
     3587            "about": [
     3588                {
     3589                    "href": "http://example.org/?rest_route=/wp/v2/types/page"
     3590                }
     3591            ],
     3592            "replies": [
     3593                {
     3594                    "embeddable": true,
     3595                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"
     3596                }
     3597            ],
     3598            "version-history": [
     3599                {
     3600                    "href": "http://example.org/?rest_route=/wp/v2/pages/5/revisions"
     3601                }
     3602            ],
     3603            "wp:attachment": [
     3604                {
     3605                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"
     3606                }
     3607            ],
     3608            "curies": [
     3609                {
     3610                    "name": "wp",
     3611                    "href": "https://api.w.org/{rel}",
     3612                    "templated": true
     3613                }
     3614            ]
     3615        }
     3616    }
     3617];
    263618
    27 mockedApiResponse.pageRevisions = [{"author":"2","date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","id":7,"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","parent":4,"slug":"4-revision-v1","guid":{"rendered":"http:\/\/example.org\/?p=7"},"title":{"rendered":"Post title 20"},"content":{"rendered":"<p>Updated content.<\/p>\n"},"excerpt":{"rendered":"<p>Post excerpt 20<\/p>\n"},"_links":{"parent":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/pages\/4"}]}}];
     3619mockedApiResponse.PageModel = {
     3620    "id": 5,
     3621    "date": "2017-02-14T00:00:00",
     3622    "date_gmt": "2017-02-14T00:00:00",
     3623    "guid": {
     3624        "rendered": "http://example.org/?page_id=5"
     3625    },
     3626    "modified": "2017-02-14T00:00:00",
     3627    "modified_gmt": "2017-02-14T00:00:00",
     3628    "slug": "restapi-client-fixture-page",
     3629    "type": "page",
     3630    "link": "http://example.org/?page_id=5",
     3631    "title": {
     3632        "rendered": "REST API Client Fixture: Page"
     3633    },
     3634    "content": {
     3635        "rendered": "<p>Updated page content.</p>\n",
     3636        "protected": false
     3637    },
     3638    "excerpt": {
     3639        "rendered": "<p>REST API Client Fixture: Page</p>\n",
     3640        "protected": false
     3641    },
     3642    "author": 0,
     3643    "featured_media": 0,
     3644    "parent": 0,
     3645    "menu_order": 0,
     3646    "comment_status": "closed",
     3647    "ping_status": "closed",
     3648    "template": "",
     3649    "meta": []
     3650};
    283651
    29 mockedApiResponse.pageRevision = {"code":"rest_post_invalid_id","message":"Invalid revision ID.","data":{"status":404}};
     3652mockedApiResponse.pageRevisions = [
     3653    {
     3654        "author": "2",
     3655        "date": "2017-02-14T00:00:00",
     3656        "date_gmt": "2017-02-14T00:00:00",
     3657        "id": 6,
     3658        "modified": "2017-02-14T00:00:00",
     3659        "modified_gmt": "2017-02-14T00:00:00",
     3660        "parent": 5,
     3661        "slug": "5-revision-v1",
     3662        "guid": {
     3663            "rendered": "http://example.org/?p=6"
     3664        },
     3665        "title": {
     3666            "rendered": "REST API Client Fixture: Page"
     3667        },
     3668        "content": {
     3669            "rendered": "<p>Updated page content.</p>\n"
     3670        },
     3671        "excerpt": {
     3672            "rendered": "<p>REST API Client Fixture: Page</p>\n"
     3673        },
     3674        "_links": {
     3675            "parent": [
     3676                {
     3677                    "href": "http://example.org/?rest_route=/wp/v2/pages/5"
     3678                }
     3679            ]
     3680        }
     3681    }
     3682];
    303683
    31 mockedApiResponse.MediaCollection = [{"id":5,"date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","guid":{"rendered":"http:\/\/example.org\/?attachment_id=5"},"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","slug":"5","type":"attachment","link":"http:\/\/example.org\/?attachment_id=5","title":{"rendered":""},"author":2,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg'><img width=\"1\" height=\"1\" src=\"http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" \/><\/a><\/p>\n"},"caption":{"rendered":"<p>A sample caption<\/p>\n"},"alt_text":"","media_type":"image","mime_type":"image\/jpeg","media_details":{},"post":null,"source_url":"http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg","_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/media\/5"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/media"}],"about":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/types\/attachment"}],"author":[{"embeddable":true,"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}]}}];
     3684mockedApiResponse.pageRevision = {
     3685    "code": "rest_post_invalid_id",
     3686    "message": "Invalid revision ID.",
     3687    "data": {
     3688        "status": 404
     3689    }
     3690};
    323691
    33 mockedApiResponse.MediaModel = {"id":5,"date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","guid":{"rendered":"http:\/\/example.org\/?attachment_id=5"},"modified":"2017-02-15T17:26:28","modified_gmt":"2017-02-15T17:26:28","slug":"5","type":"attachment","link":"http:\/\/example.org\/?attachment_id=5","title":{"rendered":""},"author":2,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg'><img width=\"1\" height=\"1\" src=\"http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" \/><\/a><\/p>\n"},"caption":{"rendered":"<p>A sample caption<\/p>\n"},"alt_text":"","media_type":"image","mime_type":"image\/jpeg","media_details":{},"post":null,"source_url":"http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg"};
     3692mockedApiResponse.MediaCollection = [
     3693    {
     3694        "id": 7,
     3695        "date": "2017-02-14T00:00:00",
     3696        "date_gmt": "2017-02-14T00:00:00",
     3697        "guid": {
     3698            "rendered": "http://example.org/?attachment_id=7"
     3699        },
     3700        "modified": "2017-02-14T00:00:00",
     3701        "modified_gmt": "2017-02-14T00:00:00",
     3702        "slug": "restapi-client-fixture-attachment",
     3703        "type": "attachment",
     3704        "link": "http://example.org/?attachment_id=7",
     3705        "title": {
     3706            "rendered": "REST API Client Fixture: Attachment"
     3707        },
     3708        "author": 0,
     3709        "comment_status": "open",
     3710        "ping_status": "closed",
     3711        "template": "",
     3712        "meta": [],
     3713        "description": {
     3714            "rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n"
     3715        },
     3716        "caption": {
     3717            "rendered": "<p>A sample caption</p>\n"
     3718        },
     3719        "alt_text": "",
     3720        "media_type": "image",
     3721        "mime_type": "image/jpeg",
     3722        "media_details": {},
     3723        "post": null,
     3724        "source_url": "http://example.org/wp-content/uploads//tmp/canola.jpg",
     3725        "_links": {
     3726            "self": [
     3727                {
     3728                    "href": "http://example.org/?rest_route=/wp/v2/media/7"
     3729                }
     3730            ],
     3731            "collection": [
     3732                {
     3733                    "href": "http://example.org/?rest_route=/wp/v2/media"
     3734                }
     3735            ],
     3736            "about": [
     3737                {
     3738                    "href": "http://example.org/?rest_route=/wp/v2/types/attachment"
     3739                }
     3740            ],
     3741            "replies": [
     3742                {
     3743                    "embeddable": true,
     3744                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"
     3745                }
     3746            ]
     3747        }
     3748    }
     3749];
    343750
    35 mockedApiResponse.TypesCollection = {"post":{"description":"","hierarchical":false,"name":"Posts","slug":"post","taxonomies":["category","post_tag"],"rest_base":"posts","_links":{"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/types"}],"wp:items":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},"page":{"description":"","hierarchical":true,"name":"Pages","slug":"page","taxonomies":[],"rest_base":"pages","_links":{"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/types"}],"wp:items":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/pages"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},"attachment":{"description":"","hierarchical":false,"name":"Media","slug":"attachment","taxonomies":[],"rest_base":"media","_links":{"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/types"}],"wp:items":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/media"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}};
     3751mockedApiResponse.MediaModel = {
     3752    "id": 7,
     3753    "date": "2017-02-14T00:00:00",
     3754    "date_gmt": "2017-02-14T00:00:00",
     3755    "guid": {
     3756        "rendered": "http://example.org/?attachment_id=7"
     3757    },
     3758    "modified": "2017-02-14T00:00:00",
     3759    "modified_gmt": "2017-02-14T00:00:00",
     3760    "slug": "restapi-client-fixture-attachment",
     3761    "type": "attachment",
     3762    "link": "http://example.org/?attachment_id=7",
     3763    "title": {
     3764        "rendered": "REST API Client Fixture: Attachment"
     3765    },
     3766    "author": 0,
     3767    "comment_status": "open",
     3768    "ping_status": "closed",
     3769    "template": "",
     3770    "meta": [],
     3771    "description": {
     3772        "rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n"
     3773    },
     3774    "caption": {
     3775        "rendered": "<p>A sample caption</p>\n"
     3776    },
     3777    "alt_text": "",
     3778    "media_type": "image",
     3779    "mime_type": "image/jpeg",
     3780    "media_details": {},
     3781    "post": null,
     3782    "source_url": "http://example.org/wp-content/uploads//tmp/canola.jpg"
     3783};
    363784
    37 mockedApiResponse.TypeModel = {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}};
     3785mockedApiResponse.TypesCollection = {
     3786    "post": {
     3787        "description": "",
     3788        "hierarchical": false,
     3789        "name": "Posts",
     3790        "slug": "post",
     3791        "taxonomies": [
     3792            "category",
     3793            "post_tag"
     3794        ],
     3795        "rest_base": "posts",
     3796        "_links": {
     3797            "collection": [
     3798                {
     3799                    "href": "http://example.org/?rest_route=/wp/v2/types"
     3800                }
     3801            ],
     3802            "wp:items": [
     3803                {
     3804                    "href": "http://example.org/?rest_route=/wp/v2/posts"
     3805                }
     3806            ],
     3807            "curies": [
     3808                {
     3809                    "name": "wp",
     3810                    "href": "https://api.w.org/{rel}",
     3811                    "templated": true
     3812                }
     3813            ]
     3814        }
     3815    },
     3816    "page": {
     3817        "description": "",
     3818        "hierarchical": true,
     3819        "name": "Pages",
     3820        "slug": "page",
     3821        "taxonomies": [],
     3822        "rest_base": "pages",
     3823        "_links": {
     3824            "collection": [
     3825                {
     3826                    "href": "http://example.org/?rest_route=/wp/v2/types"
     3827                }
     3828            ],
     3829            "wp:items": [
     3830                {
     3831                    "href": "http://example.org/?rest_route=/wp/v2/pages"
     3832                }
     3833            ],
     3834            "curies": [
     3835                {
     3836                    "name": "wp",
     3837                    "href": "https://api.w.org/{rel}",
     3838                    "templated": true
     3839                }
     3840            ]
     3841        }
     3842    },
     3843    "attachment": {
     3844        "description": "",
     3845        "hierarchical": false,
     3846        "name": "Media",
     3847        "slug": "attachment",
     3848        "taxonomies": [],
     3849        "rest_base": "media",
     3850        "_links": {
     3851            "collection": [
     3852                {
     3853                    "href": "http://example.org/?rest_route=/wp/v2/types"
     3854                }
     3855            ],
     3856            "wp:items": [
     3857                {
     3858                    "href": "http://example.org/?rest_route=/wp/v2/media"
     3859                }
     3860            ],
     3861            "curies": [
     3862                {
     3863                    "name": "wp",
     3864                    "href": "https://api.w.org/{rel}",
     3865                    "templated": true
     3866                }
     3867            ]
     3868        }
     3869    }
     3870};
    383871
    39 mockedApiResponse.StatusesCollection = {"publish":{"name":"Published","public":true,"queryable":true,"slug":"publish","_links":{"archives":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"}]}},"future":{"name":"Scheduled","public":false,"queryable":false,"slug":"future","_links":{"archives":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=future"}]}},"draft":{"name":"Draft","public":false,"queryable":false,"slug":"draft","_links":{"archives":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=draft"}]}},"pending":{"name":"Pending","public":false,"queryable":false,"slug":"pending","_links":{"archives":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=pending"}]}},"private":{"name":"Private","public":false,"queryable":false,"slug":"private","_links":{"archives":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=private"}]}},"trash":{"name":"Trash","public":false,"queryable":false,"slug":"trash","_links":{"archives":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=trash"}]}}};
     3872mockedApiResponse.TypeModel = {
     3873    "code": "rest_no_route",
     3874    "message": "No route was found matching the URL and request method",
     3875    "data": {
     3876        "status": 404
     3877    }
     3878};
    403879
    41 mockedApiResponse.StatusModel = {"name":"Published","public":true,"queryable":true,"slug":"publish"};
     3880mockedApiResponse.StatusesCollection = {
     3881    "publish": {
     3882        "name": "Published",
     3883        "public": true,
     3884        "queryable": true,
     3885        "slug": "publish",
     3886        "_links": {
     3887            "archives": [
     3888                {
     3889                    "href": "http://example.org/?rest_route=/wp/v2/posts"
     3890                }
     3891            ]
     3892        }
     3893    },
     3894    "future": {
     3895        "name": "Scheduled",
     3896        "public": false,
     3897        "queryable": false,
     3898        "slug": "future",
     3899        "_links": {
     3900            "archives": [
     3901                {
     3902                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=future"
     3903                }
     3904            ]
     3905        }
     3906    },
     3907    "draft": {
     3908        "name": "Draft",
     3909        "public": false,
     3910        "queryable": false,
     3911        "slug": "draft",
     3912        "_links": {
     3913            "archives": [
     3914                {
     3915                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=draft"
     3916                }
     3917            ]
     3918        }
     3919    },
     3920    "pending": {
     3921        "name": "Pending",
     3922        "public": false,
     3923        "queryable": false,
     3924        "slug": "pending",
     3925        "_links": {
     3926            "archives": [
     3927                {
     3928                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=pending"
     3929                }
     3930            ]
     3931        }
     3932    },
     3933    "private": {
     3934        "name": "Private",
     3935        "public": false,
     3936        "queryable": false,
     3937        "slug": "private",
     3938        "_links": {
     3939            "archives": [
     3940                {
     3941                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=private"
     3942                }
     3943            ]
     3944        }
     3945    },
     3946    "trash": {
     3947        "name": "Trash",
     3948        "public": false,
     3949        "queryable": false,
     3950        "slug": "trash",
     3951        "_links": {
     3952            "archives": [
     3953                {
     3954                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=trash"
     3955                }
     3956            ]
     3957        }
     3958    }
     3959};
    423960
    43 mockedApiResponse.TaxonomiesCollection = {"category":{"name":"Categories","slug":"category","description":"","types":["post"],"hierarchical":true,"rest_base":"categories","_links":{"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies"}],"wp:items":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/categories"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}},"post_tag":{"name":"Tags","slug":"post_tag","description":"","types":["post"],"hierarchical":false,"rest_base":"tags","_links":{"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies"}],"wp:items":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/tags"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}};
     3961mockedApiResponse.StatusModel = {
     3962    "name": "Published",
     3963    "public": true,
     3964    "queryable": true,
     3965    "slug": "publish"
     3966};
    443967
    45 mockedApiResponse.TaxonomyModel = {"name":"Categories","slug":"category","description":"","types":["post"],"hierarchical":true,"rest_base":"categories"};
     3968mockedApiResponse.TaxonomiesCollection = {
     3969    "category": {
     3970        "name": "Categories",
     3971        "slug": "category",
     3972        "description": "",
     3973        "types": [
     3974            "post"
     3975        ],
     3976        "hierarchical": true,
     3977        "rest_base": "categories",
     3978        "_links": {
     3979            "collection": [
     3980                {
     3981                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies"
     3982                }
     3983            ],
     3984            "wp:items": [
     3985                {
     3986                    "href": "http://example.org/?rest_route=/wp/v2/categories"
     3987                }
     3988            ],
     3989            "curies": [
     3990                {
     3991                    "name": "wp",
     3992                    "href": "https://api.w.org/{rel}",
     3993                    "templated": true
     3994                }
     3995            ]
     3996        }
     3997    },
     3998    "post_tag": {
     3999        "name": "Tags",
     4000        "slug": "post_tag",
     4001        "description": "",
     4002        "types": [
     4003            "post"
     4004        ],
     4005        "hierarchical": false,
     4006        "rest_base": "tags",
     4007        "_links": {
     4008            "collection": [
     4009                {
     4010                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies"
     4011                }
     4012            ],
     4013            "wp:items": [
     4014                {
     4015                    "href": "http://example.org/?rest_route=/wp/v2/tags"
     4016                }
     4017            ],
     4018            "curies": [
     4019                {
     4020                    "name": "wp",
     4021                    "href": "https://api.w.org/{rel}",
     4022                    "templated": true
     4023                }
     4024            ]
     4025        }
     4026    }
     4027};
    464028
    47 mockedApiResponse.CategoriesCollection = [{"id":1,"count":1,"description":"","link":"http:\/\/example.org\/?cat=1","name":"Uncategorized","slug":"uncategorized","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/categories\/1"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/categories"}],"about":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies\/category"}],"wp:post_type":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&categories=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}];
     4029mockedApiResponse.TaxonomyModel = {
     4030    "name": "Categories",
     4031    "slug": "category",
     4032    "description": "",
     4033    "types": [
     4034        "post"
     4035    ],
     4036    "hierarchical": true,
     4037    "rest_base": "categories"
     4038};
    484039
    49 mockedApiResponse.CategoryModel = {"id":1,"count":1,"description":"","link":"http:\/\/example.org\/?cat=1","name":"Uncategorized","slug":"uncategorized","taxonomy":"category","parent":0,"meta":[]};
     4040mockedApiResponse.CategoriesCollection = [
     4041    {
     4042        "id": 1,
     4043        "count": 1,
     4044        "description": "",
     4045        "link": "http://example.org/?cat=1",
     4046        "name": "Uncategorized",
     4047        "slug": "uncategorized",
     4048        "taxonomy": "category",
     4049        "parent": 0,
     4050        "meta": [],
     4051        "_links": {
     4052            "self": [
     4053                {
     4054                    "href": "http://example.org/?rest_route=/wp/v2/categories/1"
     4055                }
     4056            ],
     4057            "collection": [
     4058                {
     4059                    "href": "http://example.org/?rest_route=/wp/v2/categories"
     4060                }
     4061            ],
     4062            "about": [
     4063                {
     4064                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies/category"
     4065                }
     4066            ],
     4067            "wp:post_type": [
     4068                {
     4069                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&categories=1"
     4070                }
     4071            ],
     4072            "curies": [
     4073                {
     4074                    "name": "wp",
     4075                    "href": "https://api.w.org/{rel}",
     4076                    "templated": true
     4077                }
     4078            ]
     4079        }
     4080    }
     4081];
    504082
    51 mockedApiResponse.TagsCollection = [{"id":2,"count":0,"description":"Term description 21","link":"http:\/\/example.org\/?tag=test","name":"test","slug":"test","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/tags\/2"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/tags"}],"about":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies\/post_tag"}],"wp:post_type":[{"href":"http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}];
     4083mockedApiResponse.CategoryModel = {
     4084    "id": 1,
     4085    "count": 1,
     4086    "description": "",
     4087    "link": "http://example.org/?cat=1",
     4088    "name": "Uncategorized",
     4089    "slug": "uncategorized",
     4090    "taxonomy": "category",
     4091    "parent": 0,
     4092    "meta": []
     4093};
    524094
    53 mockedApiResponse.TagModel = {"id":2,"count":0,"description":"Term description 21","link":"http:\/\/example.org\/?tag=test","name":"test","slug":"test","taxonomy":"post_tag","meta":[]};
     4095mockedApiResponse.TagsCollection = [
     4096    {
     4097        "id": 2,
     4098        "count": 0,
     4099        "description": "REST API Client Fixture: Tag",
     4100        "link": "http://example.org/?tag=restapi-client-fixture-tag",
     4101        "name": "REST API Client Fixture: Tag",
     4102        "slug": "restapi-client-fixture-tag",
     4103        "taxonomy": "post_tag",
     4104        "meta": [],
     4105        "_links": {
     4106            "self": [
     4107                {
     4108                    "href": "http://example.org/?rest_route=/wp/v2/tags/2"
     4109                }
     4110            ],
     4111            "collection": [
     4112                {
     4113                    "href": "http://example.org/?rest_route=/wp/v2/tags"
     4114                }
     4115            ],
     4116            "about": [
     4117                {
     4118                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies/post_tag"
     4119                }
     4120            ],
     4121            "wp:post_type": [
     4122                {
     4123                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2"
     4124                }
     4125            ],
     4126            "curies": [
     4127                {
     4128                    "name": "wp",
     4129                    "href": "https://api.w.org/{rel}",
     4130                    "templated": true
     4131                }
     4132            ]
     4133        }
     4134    }
     4135];
    544136
    55 mockedApiResponse.UsersCollection = [{"id":1,"name":"admin","url":"","description":"","link":"http:\/\/example.org\/?author=1","slug":"admin","avatar_urls":{"24":"http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g","48":"http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g","96":"http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/1"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users"}]}},{"id":2,"name":"User 18","url":"","description":"","link":"http:\/\/example.org\/?author=2","slug":"user-18","avatar_urls":{"24":"http:\/\/0.gravatar.com\/avatar\/cd631944deab1f0589fedb77b3735377?s=24&d=mm&r=g","48":"http:\/\/0.gravatar.com\/avatar\/cd631944deab1f0589fedb77b3735377?s=48&d=mm&r=g","96":"http:\/\/0.gravatar.com\/avatar\/cd631944deab1f0589fedb77b3735377?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/2"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/users"}]}}];
     4137mockedApiResponse.TagModel = {
     4138    "id": 2,
     4139    "count": 0,
     4140    "description": "REST API Client Fixture: Tag",
     4141    "link": "http://example.org/?tag=restapi-client-fixture-tag",
     4142    "name": "REST API Client Fixture: Tag",
     4143    "slug": "restapi-client-fixture-tag",
     4144    "taxonomy": "post_tag",
     4145    "meta": []
     4146};
    564147
    57 mockedApiResponse.UserModel = {"id":1,"name":"admin","url":"","description":"","link":"http:\/\/example.org\/?author=1","slug":"admin","avatar_urls":{"24":"http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g","48":"http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g","96":"http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g"},"meta":[]};
     4148mockedApiResponse.UsersCollection = [
     4149    {
     4150        "id": 1,
     4151        "name": "admin",
     4152        "url": "",
     4153        "description": "",
     4154        "link": "http://example.org/?author=1",
     4155        "slug": "admin",
     4156        "avatar_urls": {
     4157            "24": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g",
     4158            "48": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g",
     4159            "96": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g"
     4160        },
     4161        "meta": [],
     4162        "_links": {
     4163            "self": [
     4164                {
     4165                    "href": "http://example.org/?rest_route=/wp/v2/users/1"
     4166                }
     4167            ],
     4168            "collection": [
     4169                {
     4170                    "href": "http://example.org/?rest_route=/wp/v2/users"
     4171                }
     4172            ]
     4173        }
     4174    },
     4175    {
     4176        "id": 2,
     4177        "name": "REST API Client Fixture: User",
     4178        "url": "",
     4179        "description": "",
     4180        "link": "http://example.org/?author=2",
     4181        "slug": "restapiclientfixtureuser",
     4182        "avatar_urls": {
     4183            "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
     4184            "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
     4185            "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
     4186        },
     4187        "meta": [],
     4188        "_links": {
     4189            "self": [
     4190                {
     4191                    "href": "http://example.org/?rest_route=/wp/v2/users/2"
     4192                }
     4193            ],
     4194            "collection": [
     4195                {
     4196                    "href": "http://example.org/?rest_route=/wp/v2/users"
     4197                }
     4198            ]
     4199        }
     4200    }
     4201];
    584202
    59 mockedApiResponse.me = {"id":2,"name":"User 18","url":"","description":"","link":"http:\/\/example.org\/?author=2","slug":"user-18","avatar_urls":{"24":"http:\/\/0.gravatar.com\/avatar\/cd631944deab1f0589fedb77b3735377?s=24&d=mm&r=g","48":"http:\/\/0.gravatar.com\/avatar\/cd631944deab1f0589fedb77b3735377?s=48&d=mm&r=g","96":"http:\/\/0.gravatar.com\/avatar\/cd631944deab1f0589fedb77b3735377?s=96&d=mm&r=g"},"meta":[]};
     4203mockedApiResponse.UserModel = {
     4204    "id": 2,
     4205    "name": "REST API Client Fixture: User",
     4206    "url": "",
     4207    "description": "",
     4208    "link": "http://example.org/?author=2",
     4209    "slug": "restapiclientfixtureuser",
     4210    "avatar_urls": {
     4211        "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
     4212        "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
     4213        "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
     4214    },
     4215    "meta": []
     4216};
    604217
    61 mockedApiResponse.CommentsCollection = [{"id":2,"post":3,"parent":0,"author":0,"author_name":"Commenter 22","author_url":"http:\/\/example.com\/22\/","date":"2017-02-15T17:26:28","date_gmt":"2017-02-15T17:26:28","content":{"rendered":"<p>This is a comment<\/p>\n"},"link":"http:\/\/example.org\/?p=3#comment-2","status":"approved","type":"comment","author_avatar_urls":{"24":"http:\/\/0.gravatar.com\/avatar\/?s=24&d=mm&r=g","48":"http:\/\/1.gravatar.com\/avatar\/?s=48&d=mm&r=g","96":"http:\/\/2.gravatar.com\/avatar\/?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/comments\/2"}],"collection":[{"href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/comments"}],"up":[{"embeddable":true,"post_type":"post","href":"http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3"}]}}];
     4218mockedApiResponse.me = {
     4219    "id": 2,
     4220    "name": "REST API Client Fixture: User",
     4221    "url": "",
     4222    "description": "",
     4223    "link": "http://example.org/?author=2",
     4224    "slug": "restapiclientfixtureuser",
     4225    "avatar_urls": {
     4226        "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
     4227        "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
     4228        "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
     4229    },
     4230    "meta": []
     4231};
    624232
    63 mockedApiResponse.CommentModel = {"code":"rest_comment_invalid_id","message":"Invalid comment ID.","data":{"status":404}};
     4233mockedApiResponse.CommentsCollection = [
     4234    {
     4235        "id": 2,
     4236        "post": 3,
     4237        "parent": 0,
     4238        "author": 0,
     4239        "author_name": "Internet of something or other",
     4240        "author_url": "http://lights.example.org/",
     4241        "date": "2017-02-14T00:00:00",
     4242        "date_gmt": "2017-02-14T00:00:00",
     4243        "content": {
     4244            "rendered": "<p>This is a comment</p>\n"
     4245        },
     4246        "link": "http://example.org/?p=3#comment-2",
     4247        "status": "approved",
     4248        "type": "comment",
     4249        "author_avatar_urls": {
     4250            "24": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=24&d=mm&r=g",
     4251            "48": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=48&d=mm&r=g",
     4252            "96": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=96&d=mm&r=g"
     4253        },
     4254        "meta": [],
     4255        "_links": {
     4256            "self": [
     4257                {
     4258                    "href": "http://example.org/?rest_route=/wp/v2/comments/2"
     4259                }
     4260            ],
     4261            "collection": [
     4262                {
     4263                    "href": "http://example.org/?rest_route=/wp/v2/comments"
     4264                }
     4265            ],
     4266            "up": [
     4267                {
     4268                    "embeddable": true,
     4269                    "post_type": "post",
     4270                    "href": "http://example.org/?rest_route=/wp/v2/posts/3"
     4271                }
     4272            ]
     4273        }
     4274    }
     4275];
    644276
    65 mockedApiResponse.settings = {"title":"Test Blog","description":"Just another WordPress site","url":"http:\/\/example.org","email":"admin@example.org","timezone":"","date_format":"F j, Y","time_format":"g:i a","start_of_week":1,"language":"en_US","use_smilies":true,"default_category":1,"default_post_format":"0","posts_per_page":10,"default_ping_status":"open","default_comment_status":"open"};
     4277mockedApiResponse.CommentModel = {
     4278    "code": "rest_comment_invalid_id",
     4279    "message": "Invalid comment ID.",
     4280    "data": {
     4281        "status": 404
     4282    }
     4283};
    664284
     4285mockedApiResponse.settings = {
     4286    "title": "Test Blog",
     4287    "description": "Just another WordPress site",
     4288    "url": "http://example.org",
     4289    "email": "admin@example.org",
     4290    "timezone": "",
     4291    "date_format": "F j, Y",
     4292    "time_format": "g:i a",
     4293    "start_of_week": 1,
     4294    "language": "en_US",
     4295    "use_smilies": true,
     4296    "default_category": 1,
     4297    "default_post_format": "0",
     4298    "posts_per_page": 10,
     4299    "default_ping_status": "open",
     4300    "default_comment_status": "open"
     4301};