WordPress.org

Make WordPress Core

Ticket #39264: 39264.3.diff

File 39264.3.diff, 141.4 KB (added by adamsilverstein, 2 years ago)
  • tests/phpunit/tests/rest-api/rest-schema-setup.php

     
     1<?php
     2/**
     3 * Unit tests covering schema initialization.
     4 *
     5 * @package WordPress
     6 * @subpackage REST API
     7 */
     8
     9/**
     10 * @group restapi
     11 * @group restapi-jsclient
     12 */
     13class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase {
     14
     15
     16        public static function wpSetUpBeforeClass( $factory ) {
     17
     18        }
     19
     20        public static function wpTearDownAfterClass() {
     21
     22        }
     23
     24        public function setUp() {
     25                parent::setUp();
     26
     27                /** @var WP_REST_Server $wp_rest_server */
     28                global $wp_rest_server;
     29                $this->server = $wp_rest_server = new Spy_REST_Server;
     30                do_action( 'rest_api_init' );
     31        }
     32
     33        public function tearDown() {
     34                parent::tearDown();
     35                remove_filter( 'rest_url', array( $this, 'test_rest_url_for_leading_slash' ), 10, 2 );
     36                /** @var WP_REST_Server $wp_rest_server */
     37                global $wp_rest_server;
     38                $wp_rest_server = null;
     39        }
     40
     41        public function test_expected_routes_in_schema() {
     42                $routes = $this->server->get_routes();
     43
     44                $this->assertTrue( is_array( $routes ), '`get_routes` should return an array.' );
     45                $this->assertTrue( ! empty( $routes ), 'Routes should not be empty.' );
     46
     47                // Save the complete route object for QUnit tests.
     48                $file = './tests/qunit/data/schema-routes.json';
     49                file_put_contents( $file, json_encode( $routes ) );
     50
     51                $expected_routes = array(
     52                        '/',
     53                        '/oembed/1.0',
     54                        '/oembed/1.0/embed',
     55                        '/wp/v2',
     56                        '/wp/v2/posts',
     57                        '/wp/v2/posts/(?P<id>[\\d]+)',
     58                        '/wp/v2/posts/(?P<parent>[\\d]+)/revisions',
     59                        '/wp/v2/posts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)',
     60                        '/wp/v2/pages',
     61                        '/wp/v2/pages/(?P<id>[\\d]+)',
     62                        '/wp/v2/pages/(?P<parent>[\\d]+)/revisions',
     63                        '/wp/v2/pages/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)',
     64                        '/wp/v2/media',
     65                        '/wp/v2/media/(?P<id>[\\d]+)',
     66                        '/wp/v2/types',
     67                        '/wp/v2/types/(?P<type>[\\w-]+)',
     68                        '/wp/v2/statuses',
     69                        '/wp/v2/statuses/(?P<status>[\\w-]+)',
     70                        '/wp/v2/taxonomies',
     71                        '/wp/v2/taxonomies/(?P<taxonomy>[\\w-]+)',
     72                        '/wp/v2/categories',
     73                        '/wp/v2/categories/(?P<id>[\\d]+)',
     74                        '/wp/v2/tags',
     75                        '/wp/v2/tags/(?P<id>[\\d]+)',
     76                        '/wp/v2/users',
     77                        '/wp/v2/users/(?P<id>[\\d]+)',
     78                        '/wp/v2/users/me',
     79                        '/wp/v2/comments',
     80                        '/wp/v2/comments/(?P<id>[\\d]+)',
     81                        '/wp/v2/settings',
     82                );
     83
     84                // Test that each of the expected core routes exists in the schema.
     85                foreach( $expected_routes as $route ) {
     86                        $this->assertTrue( isset( $routes[ $route ] ), $route . ' route should exist in the schema.' );
     87                }
     88}
     89
     90
     91        public function test_routes_in_schema_resolve_correctly() {
     92
     93                // Set up for testing the individual endpoints.
     94                // Set a current admin user.
     95                $administrator = $this->factory->user->create( array(
     96                        'role' => 'administrator',
     97                ) );
     98                wp_set_current_user( $administrator );
     99
     100                // Set up data for endpoints.
     101                $post_id  = $this->factory->post->create();
     102                $page_id  = $this->factory->post->create( array( 'post_type' => 'page' ) );
     103                $tag_id   = $this->factory->tag->create( array( 'name' => 'test' ) );
     104                $media_id = $this->factory->attachment->create_object( '/tmp/canola.jpg', 0, array(
     105                                                'post_mime_type' => 'image/jpeg',
     106                                                'post_excerpt'   => 'A sample caption',
     107                                        ) );
     108                wp_update_post( array( 'post_content' => 'Updated content.', 'ID' => $post_id ) );
     109                wp_update_post( array( 'post_content' => 'Updated content.', 'ID' => $page_id ) );
     110                $comment_id = $this->factory->comment->create( array(
     111                        'comment_approved' => 1,
     112                        'comment_post_ID'  => $post_id,
     113                        'user_id'          => 0,
     114                ) );
     115
     116                // Generate route data for subsequent QUnit tests.
     117                $routes_to_generate_data = array(
     118                        array( 'route' => '/oembed/1.0', 'name'  => '',),
     119                        array( 'route' => '/oembed/1.0/embed', 'name'  => '',),
     120                        array( 'route' => '/wp/v2/posts', 'name'  => 'posts',),
     121                        array( 'route' => '/wp/v2/posts/' . $post_id, 'name'  => 'post',),
     122                        array( 'route' => '/wp/v2/posts/' . $post_id . '/revisions', 'name'  => 'post-revisions',),
     123                        array( 'route' => '/wp/v2/posts/' . $post_id . '/revisions/1', 'name'  => 'revision',),
     124                        array( 'route' => '/wp/v2/pages', 'name'  => 'pages',),
     125                        array( 'route' => '/wp/v2/pages/' . $page_id, 'name'  => 'page',),
     126                        array( 'route' => '/wp/v2/pages/'. $page_id . '/revisions', 'name'  => 'page-revisions',),
     127                        array( 'route' => '/wp/v2/pages/'. $page_id . '/revisions/1', 'name'  => 'page-revision',),
     128                        array( 'route' => '/wp/v2/media', 'name'  => 'media',),
     129                        array( 'route' => '/wp/v2/media/' . $media_id, 'name'  => 'media-single',),
     130                        array( 'route' => '/wp/v2/types', 'name'  => 'yupes',),
     131                        array( 'route' => '/wp/v2/types/', 'name'  => 'type',),
     132                        array( 'route' => '/wp/v2/statuses', 'name'  => 'statuses',),
     133                        array( 'route' => '/wp/v2/statuses/publish', 'name'  => 'status',),
     134                        array( 'route' => '/wp/v2/taxonomies', 'name'  => 'taxonomies',),
     135                        array( 'route' => '/wp/v2/taxonomies/category', 'name'  => 'taxonomy',),
     136                        array( 'route' => '/wp/v2/categories', 'name'  => 'categories',),
     137                        array( 'route' => '/wp/v2/categories/1', 'name'  => 'category',),
     138                        array( 'route' => '/wp/v2/tags', 'name'  => 'tags',),
     139                        array( 'route' => '/wp/v2/tags/' . $tag_id, 'name'  => 'tag',),
     140                        array( 'route' => '/wp/v2/users', 'name'  => 'users',),
     141                        array( 'route' => '/wp/v2/users/1', 'name'  => 'user',),
     142                        array( 'route' => '/wp/v2/users/me', 'name'  => 'me',),
     143                        array( 'route' => '/wp/v2/comments', 'name'  => 'comments',),
     144                        array( 'route' => '/wp/v2/comments/1', 'name'  => 'comment',),
     145                        array( 'route' => '/wp/v2/settings', 'name'  => 'settings',),
     146                );
     147
     148                foreach( $routes_to_generate_data as $route ) {
     149                        $request = new WP_REST_Request( 'GET', $route['route'] );
     150                        $response = $this->server->dispatch( $request );
     151                        $data = $response->get_data();
     152
     153                        $this->assertTrue( ! empty( $data ), $route['name'] . ' route should return data.' );
     154
     155                        // Save the route object for QUnit tests.
     156                        $file = './tests/qunit/data/' . $route['name'] . '.json';
     157                        file_put_contents( $file, json_encode( $data ) );
     158                }
     159
     160                // Clean up our test data.
     161                wp_delete_post( $post_id, true );
     162                wp_delete_post( $page_id, true );
     163                wp_delete_term( $tag_id, 'tags' );
     164                wp_delete_attachment( $media_id );
     165                wp_delete_comment( $comment_id );
     166
     167        }
     168
     169
     170}
  • tests/qunit/fixtures/wp-api.js

     
     1var mockedApiResponse = {};
     2
     3mockedApiResponse.Schema = {"namespace":"wp\/v2","routes":{"\/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:\/\/wpdev.localhost\/wp-json\/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","aside","image","video","quote","link","gallery","audio"],"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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/posts"}},"\/wp\/v2\/posts\/(?P<id>[\\d]+)":{"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"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"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","aside","image","video","quote","link","gallery","audio"],"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":{"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":{"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":{"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":{"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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/pages"}},"\/wp\/v2\/pages\/(?P<id>[\\d]+)":{"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"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"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"}}},{"methods":["DELETE"],"args":{"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":{"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":{"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":{"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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/media"}},"\/wp\/v2\/media\/(?P<id>[\\d]+)":{"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":{"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":{"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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/types"}},"\/wp\/v2\/types\/(?P<type>[\\w-]+)":{"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"}}}]},"\/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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/statuses"}},"\/wp\/v2\/statuses\/(?P<status>[\\w-]+)":{"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"}}}]},"\/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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/taxonomies"}},"\/wp\/v2\/taxonomies\/(?P<taxonomy>[\\w-]+)":{"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"}}}]},"\/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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/categories"}},"\/wp\/v2\/categories\/(?P<id>[\\d]+)":{"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":{"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":{"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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/tags"}},"\/wp\/v2\/tags\/(?P<id>[\\d]+)":{"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":{"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":{"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","he_IL"],"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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/users"}},"\/wp\/v2\/users\/(?P<id>[\\d]+)":{"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","he_IL"],"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"}}}]},"\/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","he_IL"],"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:\/\/wpdev.localhost\/wp-json\/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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/comments"}},"\/wp\/v2\/comments\/(?P<id>[\\d]+)":{"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"},"password":{"required":false,"description":"The password for the post if it is password protected.","type":"string"}}},{"methods":["POST","PUT","PATCH"],"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,"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":{"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:\/\/wpdev.localhost\/wp-json\/wp\/v2\/settings"}}},"_links":{"up":[{"href":"http:\/\/wpdev.localhost\/wp-json\/"}]}};
     4
     5mockedApiResponse.CategoriesCollection=[{"id":10,"count":357,"description":"","link":"http://wpdev.localhost/category/pod/a-team/","name":"A-Team","slug":"a-team","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/10"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=10"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":8,"count":121,"description":"","link":"http://wpdev.localhost/category/pod/accounts/","name":"Accounts","slug":"accounts","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/8"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=8"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":16,"count":281,"description":"","link":"http://wpdev.localhost/category/pod/buster-pod/","name":"Buster Pod","slug":"buster-pod","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/16"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=16"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":196,"count":0,"description":"","link":"http://wpdev.localhost/category/category-196/","name":"Category 196","slug":"category-196","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/196"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=196"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":197,"count":0,"description":"","link":"http://wpdev.localhost/category/category-197/","name":"Category 197","slug":"category-197","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/197"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=197"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":198,"count":0,"description":"","link":"http://wpdev.localhost/category/category-198/","name":"Category 198","slug":"category-198","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/198"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=198"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":199,"count":0,"description":"","link":"http://wpdev.localhost/category/category-199/","name":"Category 199","slug":"category-199","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/199"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=199"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":200,"count":0,"description":"","link":"http://wpdev.localhost/category/category-200/","name":"Category 200","slug":"category-200","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/200"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=200"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":201,"count":0,"description":"","link":"http://wpdev.localhost/category/category-201/","name":"Category 201","slug":"category-201","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/201"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=201"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":202,"count":0,"description":"","link":"http://wpdev.localhost/category/category-202/","name":"Category 202","slug":"category-202","taxonomy":"category","parent":0,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/202"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=202"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}];
     6
     7mockedApiResponse.CommentsCollection=[{"id":1,"post":1,"parent":0,"author":0,"author_name":"A WordPress Commenter","author_url":"https://wordpress.org/","date":"2016-10-21T13:32:31","date_gmt":"2016-10-21T13:32:31","content":{"rendered":"<p>Hi, this is a comment.<br />\nTo get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.<br />\nCommenter avatars come from <a href=\"https://gravatar.com\">Gravatar</a>.</p>\n"},"link":"http://wpdev.localhost/hello-world/#comment-1","status":"approved","type":"comment","author_avatar_urls":{"24":"http://1.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=24&d=mm&r=g","48":"http://1.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=48&d=mm&r=g","96":"http://1.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/comments/1"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/comments"}],"up":[{"embeddable":true,"post_type":"post","href":"http://wpdev.localhost/wp-json/wp/v2/posts/1"}]}}];
     8
     9mockedApiResponse.MediaCollection=[{"id":4578,"date":"2016-12-04T10:45:36","date_gmt":"2016-12-04T15:45:36","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"},"modified":"2016-12-04T10:45:36","modified_gmt":"2016-12-04T15:45:36","slug":"_mg_6317-4","type":"attachment","link":"http://wpdev.localhost/_mg_6317-4/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg 580w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, &#8220;The child Noaman Tamim Shibly &#8212; For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.&#8221;</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":580,"height":326,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","width":580,"height":326,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4578"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4578"}]}},{"id":4577,"date":"2016-12-04T10:45:35","date_gmt":"2016-12-04T15:45:35","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg"},"modified":"2016-12-04T10:45:35","modified_gmt":"2016-12-04T15:45:35","slug":"_mg_6317-3","type":"attachment","link":"http://wpdev.localhost/_mg_6317-3/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, &#8220;The child Noaman Tamim Shibly &#8212; For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.&#8221;</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":300,"height":169,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-1.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4577"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4577"}]}},{"id":4576,"date":"2016-12-04T10:45:35","date_gmt":"2016-12-04T15:45:35","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg"},"modified":"2016-12-04T10:45:35","modified_gmt":"2016-12-04T15:45:35","slug":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169","type":"attachment","link":"http://wpdev.localhost/_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169/","title":{"rendered":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300&#215;169"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":""},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":300,"height":169,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-300x169.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4576"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4576"}]}},{"id":4575,"date":"2016-12-04T10:45:34","date_gmt":"2016-12-04T15:45:34","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg"},"modified":"2016-12-04T10:45:34","modified_gmt":"2016-12-04T15:45:34","slug":"_mg_6317-2","type":"attachment","link":"http://wpdev.localhost/_mg_6317-2/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg'><img width=\"270\" height=\"152\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, &#8220;The child Noaman Tamim Shibly &#8212; For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.&#8221;</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":270,"height":152,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152-150x150.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg","width":270,"height":152,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-270x152.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4575"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4575"}]}},{"id":4574,"date":"2016-12-04T10:45:34","date_gmt":"2016-12-04T15:45:34","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg"},"modified":"2016-12-04T10:45:34","modified_gmt":"2016-12-04T15:45:34","slug":"_mg_6317","type":"attachment","link":"http://wpdev.localhost/_mg_6317/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg'><img width=\"150\" height=\"150\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, &#8220;The child Noaman Tamim Shibly &#8212; For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.&#8221;</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":150,"height":150,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg","sizes":{},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150-1.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4574"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4574"}]}},{"id":4573,"date":"2016-12-04T10:45:33","date_gmt":"2016-12-04T15:45:33","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg"},"modified":"2016-12-04T10:45:33","modified_gmt":"2016-12-04T15:45:33","slug":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150","type":"attachment","link":"http://wpdev.localhost/_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150/","title":{"rendered":"_mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150&#215;150"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg'><img width=\"150\" height=\"150\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg\" class=\"attachment-medium size-medium\" alt=\"\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":""},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":150,"height":150,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg","sizes":{},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-150x150.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4573"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4573"}]}},{"id":4572,"date":"2016-12-04T10:45:31","date_gmt":"2016-12-04T15:45:31","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg"},"modified":"2016-12-04T10:45:31","modified_gmt":"2016-12-04T15:45:31","slug":"_mg_5807-50-11","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-11/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-768x432.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-1024x576.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-624x351.jpg 624w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland &#8212; about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1997,"height":1123,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-300x169.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-768x432.jpg","width":768,"height":432,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-768x432.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-1024x576.jpg","width":1024,"height":576,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-1024x576.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-624x351.jpg","width":624,"height":351,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1-624x351.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg","width":1997,"height":1123,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4572"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4572"}]}},{"id":4571,"date":"2016-12-04T10:45:30","date_gmt":"2016-12-04T15:45:30","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg"},"modified":"2016-12-04T10:45:30","modified_gmt":"2016-12-04T15:45:30","slug":"_mg_5807-50-10","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-10/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-768x432.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1024x576.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-624x351.jpg 624w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland &#8212; about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1997,"height":1123,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-300x169.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-768x432.jpg","width":768,"height":432,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-768x432.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1024x576.jpg","width":1024,"height":576,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1024x576.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-624x351.jpg","width":624,"height":351,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-624x351.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg","width":1997,"height":1123,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4571"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4571"}]}},{"id":4570,"date":"2016-12-04T10:45:28","date_gmt":"2016-12-04T15:45:28","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg"},"modified":"2016-12-04T10:45:28","modified_gmt":"2016-12-04T15:45:28","slug":"_mg_5807-50-9","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-9/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg'><img width=\"300\" height=\"135\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-768x346.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-1024x461.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-624x281.jpg 624w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg 1200w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland &#8212; about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1200,"height":540,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg","width":300,"height":135,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-300x135.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-768x346.jpg","width":768,"height":346,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-768x346.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-1024x461.jpg","width":1024,"height":461,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-1024x461.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-624x281.jpg","width":624,"height":281,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540-624x281.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg","width":1200,"height":540,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x540.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4570"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4570"}]}},{"id":4569,"date":"2016-12-04T10:45:27","date_gmt":"2016-12-04T15:45:27","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg"},"modified":"2016-12-04T10:45:27","modified_gmt":"2016-12-04T15:45:27","slug":"_mg_5807-50-8","type":"attachment","link":"http://wpdev.localhost/_mg_5807-50-8/","title":{"rendered":"_mg_5807-50"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg'><img width=\"300\" height=\"120\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-768x307.jpg 768w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-1024x410.jpg 1024w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-624x250.jpg 624w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg 1200w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>The Northern Lights over the town of Ittoqqortoormiit, Greenland &#8212; about 400 miles north of the Arctic Circle.</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":1200,"height":480,"file":"2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg","sizes":{"thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-150x150.jpg"},"medium":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg","width":300,"height":120,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-300x120.jpg"},"medium_large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-768x307.jpg","width":768,"height":307,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-768x307.jpg"},"large":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-1024x410.jpg","width":1024,"height":410,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-1024x410.jpg"},"post-thumbnail":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-624x250.jpg","width":624,"height":250,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480-624x250.jpg"},"full":{"file":"mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg","width":1200,"height":480,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg"}},"image_meta":{"aperture":"0","credit":"NPR","camera":"","caption":"The Northern Lights over the town of Ittoqqortoormiit, Greenland -- about 400 miles north of the Arctic Circle.","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_5807-50","orientation":"0","keywords":["|storyid=464282974|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_5807-50_wide-96a0ae25543c061d8955a2f246312a5eb427c9ae-1200x480.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4569"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4569"}]}}];
     10
     11mockedApiResponse.PagesCollection=[{"id":228,"date":"2016-10-24T17:34:59","date_gmt":"2016-10-24T17:34:59","guid":{"rendered":"http://wpdev.localhost/?page_id=228"},"modified":"2016-10-24T17:34:59","modified_gmt":"2016-10-24T17:34:59","slug":"buc","type":"page","link":"http://wpdev.localhost/buc/","title":{"rendered":"Buc"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=228"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=228"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":15,"date":"2016-10-24T12:41:16","date_gmt":"2016-10-24T12:41:16","guid":{"rendered":"http://wpdev.localhost/?page_id=15"},"modified":"2016-10-24T12:41:16","modified_gmt":"2016-10-24T12:41:16","slug":"moar-page","type":"page","link":"http://wpdev.localhost/moar-page/","title":{"rendered":"moar page"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/15"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=15"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/15/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=15"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":11,"date":"2016-10-24T12:39:04","date_gmt":"2016-10-24T12:39:04","guid":{"rendered":"http://wpdev.localhost/?page_id=11"},"modified":"2016-10-24T12:39:04","modified_gmt":"2016-10-24T12:39:04","slug":"another-page","type":"page","link":"http://wpdev.localhost/another-page/","title":{"rendered":"Another page"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/11"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=11"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/11/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=11"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2,"date":"2016-10-21T13:32:31","date_gmt":"2016-10-21T13:32:31","guid":{"rendered":"http://wpdev.localhost/?page_id=2"},"modified":"2016-10-21T13:32:31","modified_gmt":"2016-10-21T13:32:31","slug":"sample-page","type":"page","link":"http://wpdev.localhost/","title":{"rendered":"Sample Page"},"content":{"rendered":"<p>This is an example page. It&#8217;s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:</p>\n<blockquote><p>Hi there! I&#8217;m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin&#8217; caught in the rain.)</p></blockquote>\n<p>&#8230;or something like this:</p>\n<blockquote><p>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</p></blockquote>\n<p>As a new WordPress user, you should go to <a href=\"http://wpdev.localhost/wp-admin/\">your dashboard</a> to delete this page and create new pages for your content. Have fun!</p>\n","protected":false},"excerpt":{"rendered":"<p>This is an example page. It&#8217;s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this: Hi there! I&#8217;m a bike messenger &hellip; </p>\n<p class=\"link-more\"><a href=\"http://wpdev.localhost/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Sample Page&#8221;</span></a></p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/2"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/2/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}];
     12
     13mockedApiResponse.PostsCollection=[{"id":4492,"date":"2016-12-01T23:05:19","date_gmt":"2016-12-02T04:05:19","guid":{"rendered":"http://wpdev.localhost/?p=4492"},"modified":"2016-12-01T23:17:36","modified_gmt":"2016-12-02T04:17:36","slug":"test-2","type":"post","link":"http://wpdev.localhost/test-2/","title":{"rendered":"test"},"content":{"rendered":"<p>ok</p>\n","protected":false},"excerpt":{"rendered":"<p>ok</p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4492"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=4492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=4492"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=4492"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":3220,"date":"2016-11-22T14:25:50","date_gmt":"2016-11-22T19:25:50","guid":{"rendered":"http://wpdev.localhost/?p=3220"},"modified":"2016-11-22T14:25:50","modified_gmt":"2016-11-22T19:25:50","slug":"ok","type":"post","link":"http://wpdev.localhost/ok/","title":{"rendered":"Ok"},"content":{"rendered":"<p>Lorem ipsum dolor sit amet, minim molestie argumentum est at, pri legere torquatos instructior ex. Vis id odio atomorum oportere, quem modo fabellas sit at, dicat semper est ne. Apeirian detraxit pri eu. No solum accusam has. Ius ne harum mundi clita, eu pro tation audiam.</p>\n","protected":false},"excerpt":{"rendered":"<p>Lorem ipsum dolor sit amet, minim molestie argumentum est at, pri legere torquatos instructior ex. Vis id odio atomorum oportere, quem modo fabellas sit at, dicat semper est ne. Apeirian detraxit pri eu. No solum accusam has. Ius ne harum mundi clita, eu pro tation audiam.</p>\n","protected":false},"author":1,"featured_media":3091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3220"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=3220"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3220/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/media/3091"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=3220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=3220"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=3220"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":3221,"date":"2016-11-22T14:25:33","date_gmt":"2016-11-22T19:25:33","guid":{"rendered":"http://wpdev.localhost/?p=3221"},"modified":"2016-11-22T14:25:33","modified_gmt":"2016-11-22T19:25:33","slug":"this-is-fun","type":"post","link":"http://wpdev.localhost/this-is-fun/","title":{"rendered":"This is fun!"},"content":{"rendered":"<p>spanky</p>\n","protected":false},"excerpt":{"rendered":"<p>spanky</p>\n","protected":false},"author":1,"featured_media":3091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3221"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=3221"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/3221/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/media/3091"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=3221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=3221"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=3221"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2418,"date":"2016-11-15T18:31:44","date_gmt":"2016-11-15T23:31:44","guid":{"rendered":"http://wpdev.localhost/?p=2418"},"modified":"2016-11-18T08:29:57","modified_gmt":"2016-11-18T13:29:57","slug":"test","type":"post","link":"http://wpdev.localhost/test/","title":{"rendered":"test"},"content":{"rendered":"<div id=\"h9639\" class=\"curiosity-module\" data-pym-src=\"//wamu.wearehearken.com/curiosity_modules/110\"></div>\n<div id=\"hg07n\" class=\"hkn-vote-module \" data-pym-src=\"//wamu.wearehearken.com/widgets/votes/new\"></div>\n<p><script src=\"//hearken-assets.s3.amazonaws.com/pym.min.js\"></script></p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":3087,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2418"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2418"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2418/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/media/3087"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=2418"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=2418"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2398,"date":"2016-11-09T16:27:41","date_gmt":"2016-11-09T21:27:41","guid":{"rendered":"http://wpdev.localhost/?p=2398"},"modified":"2016-11-09T16:49:43","modified_gmt":"2016-11-09T21:49:43","slug":"1-2","type":"post","link":"http://wpdev.localhost/1-2/","title":{"rendered":"8"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2398"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2398"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2398/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=2398"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=2398"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":2393,"date":"2016-11-09T16:24:12","date_gmt":"2016-11-09T21:24:12","guid":{"rendered":"http://wpdev.localhost/?p=2393"},"modified":"2016-11-09T16:24:44","modified_gmt":"2016-11-09T21:24:44","slug":"test-1","type":"post","link":"http://wpdev.localhost/test-1/","title":{"rendered":"test 2"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2393"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=2393"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/2393/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=2393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=2393"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=2393"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":120,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=120"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-103","type":"post","link":"http://wpdev.localhost/post-103/","title":{"rendered":"Post 103"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/120"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=120"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/120/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=120"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":119,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=119"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-102","type":"post","link":"http://wpdev.localhost/post-102/","title":{"rendered":"Post 102"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/119"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=119"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/119/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=119"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":118,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=118"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-101","type":"post","link":"http://wpdev.localhost/post-101/","title":{"rendered":"Post 101"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/118"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=118"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/118/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=118"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":117,"date":"2016-10-24T14:32:02","date_gmt":"2016-10-24T14:32:02","guid":{"rendered":"http://wpdev.localhost/?p=117"},"modified":"2016-10-24T14:32:02","modified_gmt":"2016-10-24T14:32:02","slug":"post-100","type":"post","link":"http://wpdev.localhost/post-100/","title":{"rendered":"Post 100"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/117"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=117"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/117/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=117"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}];
     14
     15mockedApiResponse.StatusesCollection={"publish":{"name":"Published","public":true,"queryable":true,"slug":"publish","_links":{"archives":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}]}}};
     16
     17mockedApiResponse.TagsCollection=[{"id":25,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-04/","name":"2016-01-04","slug":"2016-01-04","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/25"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=25"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":26,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-11/","name":"2016-01-11","slug":"2016-01-11","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/26"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=26"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":27,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-18/","name":"2016-01-18","slug":"2016-01-18","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/27"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=27"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":28,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-25/","name":"2016-01-25","slug":"2016-01-25","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/28"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=28"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":29,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-01/","name":"2016-02-01","slug":"2016-02-01","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/29"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=29"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":30,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-08/","name":"2016-02-08","slug":"2016-02-08","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/30"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=30"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":31,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-15/","name":"2016-02-15","slug":"2016-02-15","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/31"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=31"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":32,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-02-22/","name":"2016-02-22","slug":"2016-02-22","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/32"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=32"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":33,"count":26,"description":"","link":"http://wpdev.localhost/tag/2016-02-29/","name":"2016-02-29","slug":"2016-02-29","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/33"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=33"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}},{"id":34,"count":27,"description":"","link":"http://wpdev.localhost/tag/2016-03-07/","name":"2016-03-07","slug":"2016-03-07","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/34"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=34"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}];
     18
     19mockedApiResponse.TaxonomiesCollection={"category":{"name":"Categories","slug":"category","description":"","types":["post"],"hierarchical":true,"rest_base":"categories","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/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://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}};
     20
     21mockedApiResponse.TypesCollection={"post":{"description":"","hierarchical":false,"name":"Posts","slug":"post","taxonomies":["category","post_tag"],"rest_base":"posts","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/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://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/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://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}};
     22
     23mockedApiResponse.UsersCollection=[{"id":1,"name":"admin","url":"","description":"","link":"http://wpdev.localhost/author/admin/","slug":"admin","avatar_urls":{"24":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=24&d=mm&r=g","48":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=48&d=mm&r=g","96":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users"}]}}];
     24
     25mockedApiResponse.CategoryModel={"id":10,"count":357,"description":"","link":"http://wpdev.localhost/category/pod/a-team/","name":"A-Team","slug":"a-team","taxonomy":"category","parent":3,"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories/10"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/categories"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/category"}],"up":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories/3"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?categories=10"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}};
     26
     27mockedApiResponse.MediaModel={"id":4578,"date":"2016-12-04T10:45:36","date_gmt":"2016-12-04T15:45:36","guid":{"rendered":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"},"modified":"2016-12-04T10:45:36","modified_gmt":"2016-12-04T15:45:36","slug":"_mg_6317-4","type":"attachment","link":"http://wpdev.localhost/_mg_6317-4/","title":{"rendered":"_mg_6317"},"author":1,"comment_status":"open","ping_status":"closed","template":"","meta":[],"description":{"rendered":"<p class=\"attachment\"><a href='http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg'><img width=\"300\" height=\"169\" src=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg 300w, http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg 580w\" sizes=\"100vw\" /></a></p>\n"},"caption":{"rendered":"<p>At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, &#8220;The child Noaman Tamim Shibly &#8212; For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.&#8221;</p>\n"},"alt_text":"","media_type":"image","mime_type":"image/jpeg","media_details":{"width":580,"height":326,"file":"2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","sizes":{"thumbnail":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg","width":150,"height":150,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-150x150.jpg"},"medium":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg","width":300,"height":169,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326-300x169.jpg"},"full":{"file":"mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","width":580,"height":326,"mime_type":"image/jpeg","source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg"}},"image_meta":{"aperture":"0","credit":"Kainaz Amaria/NPR","camera":"","caption":"At a makeshift burial ground in Samos, beyond the edges of a Greek Orthodox cemetery, lie the bodies of three Syrian children. The marker reads, \"The child Noaman Tamim Shibly -- For us Allah suffices, and he is the best disposer of affairs. To God we belong, and to him we shall return.\"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"_mg_6317","orientation":"0","keywords":["|storyid=467381719|"]}},"post":null,"source_url":"http://wpdev.localhost/wp-content/uploads/2016/12/mg_6317_wide-f7ae9aa6751932a0268794b25ff6df63bb6f9f62-580x326.jpg","_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media/4578"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/attachment"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4578"}]}};
     28
     29mockedApiResponse.PageModel={"id":228,"date":"2016-10-24T17:34:59","date_gmt":"2016-10-24T17:34:59","guid":{"rendered":"http://wpdev.localhost/?page_id=228"},"modified":"2016-10-24T17:34:59","modified_gmt":"2016-10-24T17:34:59","slug":"buc","type":"page","link":"http://wpdev.localhost/buc/","title":{"rendered":"Buc"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/page"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=228"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/pages/228/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=228"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}};
     30
     31mockedApiResponse.PostModel={"id":4492,"date":"2016-12-01T23:05:19","date_gmt":"2016-12-02T04:05:19","guid":{"rendered":"http://wpdev.localhost/?p=4492"},"modified":"2016-12-01T23:17:36","modified_gmt":"2016-12-02T04:17:36","slug":"test-2","type":"post","link":"http://wpdev.localhost/test-2/","title":{"rendered":"test"},"content":{"rendered":"<p>ok</p>\n","protected":false},"excerpt":{"rendered":"<p>ok</p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/comments?post=4492"}],"version-history":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts/4492/revisions"}],"wp:attachment":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media?parent=4492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/categories?post=4492"},{"taxonomy":"post_tag","embeddable":true,"href":"http://wpdev.localhost/wp-json/wp/v2/tags?post=4492"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}};
     32
     33mockedApiResponse.TagModel={"id":25,"count":25,"description":"","link":"http://wpdev.localhost/tag/2016-01-04/","name":"2016-01-04","slug":"2016-01-04","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags/25"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"about":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies/post_tag"}],"wp:post_type":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts?tags=25"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}};
     34
     35mockedApiResponse.UserModel={"id":1,"name":"admin","url":"","description":"","link":"http://wpdev.localhost/author/admin/","slug":"admin","avatar_urls":{"24":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=24&d=mm&r=g","48":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=48&d=mm&r=g","96":"http://0.gravatar.com/avatar/fddbd6c3e1c3d971aa732b9346aeb433?s=96&d=mm&r=g"},"meta":[],"_links":{"self":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users/1"}],"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/users"}]}};
     36
     37mockedApiResponse.TaxonomyModel={"category":{"name":"Categories","slug":"category","description":"","types":["post"],"hierarchical":true,"rest_base":"categories","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/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://wpdev.localhost/wp-json/wp/v2/taxonomies"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/tags"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}};
     38
     39mockedApiResponse.StatusModel={"publish":{"name":"Published","public":true,"queryable":true,"slug":"publish","_links":{"archives":[{"href":"http://wpdev.localhost/wp-json/wp/v2/posts"}]}}};
     40
     41mockedApiResponse.TypeModel={"post":{"description":"","hierarchical":false,"name":"Posts","slug":"post","taxonomies":["category","post_tag"],"rest_base":"posts","_links":{"collection":[{"href":"http://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/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://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/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://wpdev.localhost/wp-json/wp/v2/types"}],"wp:items":[{"href":"http://wpdev.localhost/wp-json/wp/v2/media"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}};
     42
     43var pathToData = {
     44'wp-json/wp/v2/': mockedApiResponse.Schema,
     45'wp-json/wp/v2/categories': mockedApiResponse.CategoriesCollection,
     46'wp-json/wp/v2/comments': mockedApiResponse.CommentsCollection,
     47'wp-json/wp/v2/media': mockedApiResponse.MediaCollection,
     48'wp-json/wp/v2/pages': mockedApiResponse.PagesCollection,
     49'wp-json/wp/v2/posts': mockedApiResponse.PostsCollection,
     50'wp-json/wp/v2/statuses': mockedApiResponse.StatusesCollection,
     51'wp-json/wp/v2/tags': mockedApiResponse.TagsCollection,
     52'wp-json/wp/v2/taxonomies': mockedApiResponse.TaxonomiesCollection,
     53'wp-json/wp/v2/types': mockedApiResponse.TypesCollection,
     54'wp-json/wp/v2/users': mockedApiResponse.UsersCollection,
     55'wp-json/wp/v2/category': mockedApiResponse.CategoryModel,
     56'wp-json/wp/v2/media1': mockedApiResponse.MediaModel,
     57'wp-json/wp/v2/page': mockedApiResponse.PageModel,
     58'wp-json/wp/v2/post': mockedApiResponse.PostModel,
     59'wp-json/wp/v2/tag': mockedApiResponse.TagModel,
     60'wp-json/wp/v2/user': mockedApiResponse.UserModel,
     61'wp-json/wp/v2/taxonomy': mockedApiResponse.TaxonomyModel,
     62'wp-json/wp/v2/status': mockedApiResponse.StatusModel,
     63'wp-json/wp/v2/type': mockedApiResponse.TypeModel
     64};
     65
     66
     67
     68/**
     69 * Mock the ajax callbacks for our tests.
     70 *
     71 * @param  {object} param The parameters sent to the ajax request.
     72 *
     73 * @return {Object}       A jQuery defered object that resolves with the mapped data.
     74 */
     75Backbone.ajax = function ( param ) {
     76
     77        var data,
     78                request = param.url.replace( 'http://localhost/', '' );
     79
     80        if ( pathToData[ request ] ) {
     81                data = pathToData[ request ];
     82        }
     83
     84        // Call success handler.
     85        param.success( data );
     86        var deferred = jQuery.Deferred();
     87
     88        // Resolve the deferred with the mocked data
     89        deferred.resolve( data );
     90
     91        // Return the deferred promise that will resolve with the expected data.
     92        return deferred.promise();
     93
     94};
  • tests/qunit/index.html

     
    1717                                }
    1818                        };
    1919                </script>
     20                <script>
     21                        var wpApiSettings = {
     22                                'root': 'http://localhost/wp-json/'
     23                        };
     24                </script>
    2025                <script src="../../src/wp-includes/js/wp-util.js"></script>
    2126                <script src="../../src/wp-includes/js/wp-a11y.js"></script>
    2227
     
    3439                        <script src="fixtures/customize-settings.js"></script>
    3540                        <script src="fixtures/customize-menus.js"></script>
    3641                        <script src="fixtures/customize-widgets.js"></script>
     42                        <script src="fixtures/wp-api.js"></script>
    3743                </div>
    3844                <p><a href="editor">TinyMCE tests</a></p>
    3945
     
    4349                <script src="../../src/wp-includes/js/customize-models.js"></script>
    4450                <script src="../../src/wp-includes/js/shortcode.js"></script>
    4551                <script src="../../src/wp-admin/js/customize-controls.js"></script>
     52                <script src="../../src/wp-includes/js/wp-api.js"></script>
    4653
    4754                <script type='text/javascript' src='../../src/wp-includes/js/jquery/ui/core.js'></script>
    4855                <script type='text/javascript' src='../../src/wp-includes/js/jquery/ui/widget.js'></script>
     
    6168                <script src="wp-admin/js/customize-base.js"></script>
    6269                <script src="wp-admin/js/customize-header.js"></script>
    6370                <script src="wp-includes/js/shortcode.js"></script>
     71                <script src="wp-includes/js/wp-api.js"></script>
    6472                <script src="wp-admin/js/customize-controls.js"></script>
    6573                <script src="wp-admin/js/customize-controls-utils.js"></script>
    6674                <script src="wp-admin/js/customize-nav-menus.js"></script>
  • tests/qunit/wp-includes/js/wp-api.js

     
     1/* global wp */
     2( function( QUnit ) {
     3        module( 'wpapi' );
     4
     5        QUnit.test( 'API Loaded correctly', function( assert ) {
     6                var done = assert.async();
     7                assert.expect( 2 );
     8
     9                assert.ok( wp.api.loadPromise );
     10
     11                //wp.api.init();
     12                wp.api.loadPromise.done( function() {
     13                        assert.ok( wp.api.models );
     14                        done();
     15                } );
     16
     17        } );
     18
     19
     20        // The list of collections we should check.
     21        var collectionClassNames = [
     22                        'Categories',
     23                        'Comments',
     24                        'Media',
     25                        'Pages',
     26                        'Posts',
     27                        'Statuses',
     28                        'Tags',
     29                        'Taxonomies',
     30                        'Types',
     31                        'Users'
     32                ];
     33
     34        // Collections that should get helpers tested.
     35        var collectionHelperTests = [
     36                {
     37                        'collectionType':   'Posts',
     38                        'returnsModelType': 'post',
     39                        'supportsMethods':  {
     40                                'getDate':          'getDate',
     41                                'getRevisions':     'getRevisions',
     42                                'getTags':          'getTags',
     43                                'getCategories':    'getCategories',
     44                                'getAuthorUser':    'getAuthorUser',
     45                                'getFeaturedMedia': 'getFeaturedMedia'
     46                                /*'getMeta':        'getMeta', currently not supported */
     47                        }
     48                },
     49                {
     50                        'collectionType':   'Pages',
     51                        'returnsModelType': 'page',
     52                        'supportsMethods':  {
     53                                'getDate':          'getDate',
     54                                'getRevisions':     'getRevisions',
     55                                'getAuthorUser':    'getAuthorUser',
     56                                'getFeaturedMedia': 'getFeaturedMedia'
     57                        }
     58                }
     59        ];
     60
     61        _.each( collectionClassNames, function( className ) {
     62                QUnit.test( 'Testing ' + className + ' collection.', function( assert ) {
     63                        var done = assert.async();
     64
     65                        wp.api.loadPromise.done( function() {
     66                                var theCollection = new wp.api.collections[ className ]();
     67                                assert.ok(
     68                                        theCollection,
     69                                        'We can instantiate wp.api.collections.' + className
     70                                );
     71                                theCollection.fetch().done( function( response ) {
     72                                        assert.equal(
     73                                                1,
     74                                                theCollection.state.currentPage,
     75                                                'We should be on page 1 of the collection in ' + className
     76                                        );
     77
     78                                                // Should this collection have helper methods?
     79                                                var collectionHelperTest = _.findWhere( collectionHelperTests, { 'collectionType': className } );
     80
     81                                                // If we found a match, run the tests against it.
     82                                                if ( ! _.isUndefined( collectionHelperTest ) ) {
     83
     84                                                        // Test the first returned model.
     85                                                        var firstModel = theCollection.at( 0 );
     86
     87                                                        // Is the model the right type?
     88                                                        assert.equal(
     89                                                                collectionHelperTest.returnsModelType,
     90                                                                firstModel.get( 'type' ),
     91                                                                'The wp.api.collections.' + className + ' is of type ' + collectionHelperTest.returnsModelType
     92                                                        );
     93
     94                                                        // Does the model have all of the expected supported methods?
     95                                                        _.each( collectionHelperTest.supportsMethods, function( method ) {
     96                                                                assert.equal(
     97                                                                        'function',
     98                                                                        typeof firstModel[ method ],
     99                                                                        className + '.' + method + ' is a function.'
     100                                                                );
     101                                                        } );
     102                                                }
     103
     104                                        // Trigger Qunit async completion.
     105                                        done();
     106                                } );
     107
     108                        } );
     109
     110                });
     111        } );
     112
     113        // The list of models we should check.
     114        var modelsWithIdsClassNames =
     115                [
     116                        'Category',
     117                        'Media',
     118                        'Page',
     119                        'Post',
     120                        'Tag',
     121                        'User'
     122                ];
     123
     124
     125        _.each( modelsWithIdsClassNames, function( className ) {
     126
     127                QUnit.test( 'Checking ' + className + ' model.' , function( assert ) {
     128                        var done = assert.async();
     129
     130                        assert.expect( 2 );
     131
     132                        wp.api.loadPromise.done( function() {
     133                                var theModel = new wp.api.models[ className ]();
     134                                assert.ok( theModel, 'We can instantiate wp.api.models.' + className );
     135                                theModel.fetch().done( function(  ) {
     136                                        var theModel2 = new wp.api.models[ className ]();
     137                                        theModel2.set( 'id', theModel.attributes[0].id );
     138                                        theModel2.fetch().done( function( response ) {
     139
     140                                                // We were able to retrieve the model.
     141                                                assert.equal(
     142                                                        theModel.attributes[0].id,
     143                                                        theModel2.get( 'id' ) ,
     144                                                        'We should be able to get a ' + className
     145                                                );
     146
     147                                                // Trigger Qunit async completion.
     148                                                done();
     149                                        } );
     150                                } );
     151
     152                        } );
     153
     154                });
     155        } );
     156
     157        var modelsWithIndexes =
     158                [
     159                        'Taxonomy',
     160                        'Status',
     161                        'Type'
     162                ];
     163
     164        _.each( modelsWithIndexes, function( className ) {
     165
     166                QUnit.test( 'Testing ' + className + ' model.' , function( assert ) {
     167                        var done = assert.async();
     168
     169                        assert.expect( 2 );
     170
     171                        wp.api.loadPromise.done( function(  ) {
     172
     173                                var theModel = new wp.api.models[ className ]();
     174                                assert.ok( theModel, 'We can instantiate wp.api.models.' + className );
     175                                theModel.fetch().done( function(  ) {
     176                                        var theModel2 = new wp.api.models[ className ]();
     177
     178                                        if ( ! _.isUndefined( theModel.attributes[0] ) ) {
     179                                                theModel2.set( 'id', theModel.attributes[0].id );
     180                                        }
     181
     182                                        theModel2.fetch().done( function( response ) {
     183
     184                                                // We were able to retrieve the model.
     185                                                assert.notEqual(
     186                                                        0,
     187                                                        _.keys( theModel2.attributes ).length ,
     188                                                        'We should be able to get a ' + className
     189                                                );
     190
     191                                                // Trigger Qunit async completion.
     192                                                done();
     193                                        } );
     194                                } );
     195
     196                        } );
     197
     198                });
     199        } );
     200
     201
     202} )( window.QUnit );