Created
February 14, 2017 05:38
-
-
Save nylen/4e66a211ea3357a93a14dde6ff7d98f1 to your computer and use it in GitHub Desktop.
working on https://core.trac.wordpress.org/ticket/39264
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-api-generated-1class.js b/wp-api-generated-REST.js | |
index 40b31ba..ce5b87e 100644 | |
--- a/wp-api-generated-1class.js | |
+++ b/wp-api-generated-REST.js | |
@@ -3374,36 +3374,49 @@ mockedApiResponse.oembeds = { | |
mockedApiResponse.PostsCollection = [ | |
{ | |
- "id": 3, | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
+ "id": 346, | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
"guid": { | |
- "rendered": "http://example.org/?p=3" | |
+ "rendered": "http://example.org/?p=346" | |
}, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "slug": "post-title-19", | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "slug": "post-title-537", | |
"type": "post", | |
- "link": "http://example.org/?p=3", | |
+ "link": "http://example.org/?p=346", | |
"title": { | |
- "rendered": "Post title 19" | |
+ "rendered": "Post title 537" | |
}, | |
"content": { | |
"rendered": "<p>Updated content.</p>\n", | |
"protected": false | |
}, | |
"excerpt": { | |
- "rendered": "<p>Post excerpt 19</p>\n", | |
+ "rendered": "<p>Post excerpt 537</p>\n", | |
"protected": false | |
}, | |
- "author": 2, | |
+ "author": 51, | |
"featured_media": 0, | |
"comment_status": "open", | |
"ping_status": "open", | |
"sticky": false, | |
"template": "", | |
"format": "standard", | |
- "meta": [], | |
+ "meta": { | |
+ "test_single": "", | |
+ "test_multi": [], | |
+ "test_bad_auth": "", | |
+ "test_bad_auth_multi": [], | |
+ "test_custom_schema": 0, | |
+ "test_custom_schema_multi": [], | |
+ "new_name": "", | |
+ "new_name_multi": [], | |
+ "test_string": "", | |
+ "test_number": 0, | |
+ "test_bool": false, | |
+ "my_meta_key": [] | |
+ }, | |
"categories": [ | |
1 | |
], | |
@@ -3411,7 +3424,7 @@ mockedApiResponse.PostsCollection = [ | |
"_links": { | |
"self": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/posts/3" | |
+ "href": "http://example.org/?rest_route=/wp/v2/posts/346" | |
} | |
], | |
"collection": [ | |
@@ -3427,35 +3440,35 @@ mockedApiResponse.PostsCollection = [ | |
"author": [ | |
{ | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=/wp/v2/users/2" | |
+ "href": "http://example.org/?rest_route=/wp/v2/users/51" | |
} | |
], | |
"replies": [ | |
{ | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=346" | |
} | |
], | |
"version-history": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/posts/3/revisions" | |
+ "href": "http://example.org/?rest_route=/wp/v2/posts/346/revisions" | |
} | |
], | |
"wp:attachment": [ | |
{ | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=346" | |
} | |
], | |
"wp:term": [ | |
{ | |
"taxonomy": "category", | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcategories&post=346" | |
}, | |
{ | |
"taxonomy": "post_tag", | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Ftags&post=3" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Ftags&post=346" | |
} | |
], | |
"curies": [ | |
@@ -3470,36 +3483,49 @@ mockedApiResponse.PostsCollection = [ | |
]; | |
mockedApiResponse.PostModel = { | |
- "id": 3, | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
+ "id": 346, | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
"guid": { | |
- "rendered": "http://example.org/?p=3" | |
+ "rendered": "http://example.org/?p=346" | |
}, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "slug": "post-title-19", | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "slug": "post-title-537", | |
"type": "post", | |
- "link": "http://example.org/?p=3", | |
+ "link": "http://example.org/?p=346", | |
"title": { | |
- "rendered": "Post title 19" | |
+ "rendered": "Post title 537" | |
}, | |
"content": { | |
"rendered": "<p>Updated content.</p>\n", | |
"protected": false | |
}, | |
"excerpt": { | |
- "rendered": "<p>Post excerpt 19</p>\n", | |
+ "rendered": "<p>Post excerpt 537</p>\n", | |
"protected": false | |
}, | |
- "author": 2, | |
+ "author": 51, | |
"featured_media": 0, | |
"comment_status": "open", | |
"ping_status": "open", | |
"sticky": false, | |
"template": "", | |
"format": "standard", | |
- "meta": [], | |
+ "meta": { | |
+ "test_single": "", | |
+ "test_multi": [], | |
+ "test_bad_auth": "", | |
+ "test_bad_auth_multi": [], | |
+ "test_custom_schema": 0, | |
+ "test_custom_schema_multi": [], | |
+ "new_name": "", | |
+ "new_name_multi": [], | |
+ "test_string": "", | |
+ "test_number": 0, | |
+ "test_bool": false, | |
+ "my_meta_key": [] | |
+ }, | |
"categories": [ | |
1 | |
], | |
@@ -3508,30 +3534,30 @@ mockedApiResponse.PostModel = { | |
mockedApiResponse.postRevisions = [ | |
{ | |
- "author": "2", | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
- "id": 6, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "parent": 3, | |
- "slug": "3-revision-v1", | |
+ "author": "51", | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
+ "id": 349, | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "parent": 346, | |
+ "slug": "346-revision-v1", | |
"guid": { | |
- "rendered": "http://example.org/?p=6" | |
+ "rendered": "http://example.org/?p=349" | |
}, | |
"title": { | |
- "rendered": "Post title 19" | |
+ "rendered": "Post title 537" | |
}, | |
"content": { | |
"rendered": "<p>Updated content.</p>\n" | |
}, | |
"excerpt": { | |
- "rendered": "<p>Post excerpt 19</p>\n" | |
+ "rendered": "<p>Post excerpt 537</p>\n" | |
}, | |
"_links": { | |
"parent": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/posts/3" | |
+ "href": "http://example.org/?rest_route=/wp/v2/posts/346" | |
} | |
] | |
} | |
@@ -3548,40 +3574,53 @@ mockedApiResponse.revision = { | |
mockedApiResponse.PagesCollection = [ | |
{ | |
- "id": 4, | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
+ "id": 347, | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
"guid": { | |
- "rendered": "http://example.org/?page_id=4" | |
+ "rendered": "http://example.org/?page_id=347" | |
}, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "slug": "post-title-20", | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "slug": "post-title-538", | |
"type": "page", | |
- "link": "http://example.org/?page_id=4", | |
+ "link": "http://example.org/?page_id=347", | |
"title": { | |
- "rendered": "Post title 20" | |
+ "rendered": "Post title 538" | |
}, | |
"content": { | |
"rendered": "<p>Updated content.</p>\n", | |
"protected": false | |
}, | |
"excerpt": { | |
- "rendered": "<p>Post excerpt 20</p>\n", | |
+ "rendered": "<p>Post excerpt 538</p>\n", | |
"protected": false | |
}, | |
- "author": 2, | |
+ "author": 51, | |
"featured_media": 0, | |
"parent": 0, | |
"menu_order": 0, | |
"comment_status": "closed", | |
"ping_status": "closed", | |
"template": "", | |
- "meta": [], | |
+ "meta": { | |
+ "test_single": "", | |
+ "test_multi": [], | |
+ "test_bad_auth": "", | |
+ "test_bad_auth_multi": [], | |
+ "test_custom_schema": 0, | |
+ "test_custom_schema_multi": [], | |
+ "new_name": "", | |
+ "new_name_multi": [], | |
+ "test_string": "", | |
+ "test_number": 0, | |
+ "test_bool": false, | |
+ "my_meta_key": [] | |
+ }, | |
"_links": { | |
"self": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/pages/4" | |
+ "href": "http://example.org/?rest_route=/wp/v2/pages/347" | |
} | |
], | |
"collection": [ | |
@@ -3597,23 +3636,23 @@ mockedApiResponse.PagesCollection = [ | |
"author": [ | |
{ | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=/wp/v2/users/2" | |
+ "href": "http://example.org/?rest_route=/wp/v2/users/51" | |
} | |
], | |
"replies": [ | |
{ | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=4" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=347" | |
} | |
], | |
"version-history": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/pages/4/revisions" | |
+ "href": "http://example.org/?rest_route=/wp/v2/pages/347/revisions" | |
} | |
], | |
"wp:attachment": [ | |
{ | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=347" | |
} | |
], | |
"curies": [ | |
@@ -3628,64 +3667,77 @@ mockedApiResponse.PagesCollection = [ | |
]; | |
mockedApiResponse.PageModel = { | |
- "id": 4, | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
+ "id": 347, | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
"guid": { | |
- "rendered": "http://example.org/?page_id=4" | |
+ "rendered": "http://example.org/?page_id=347" | |
}, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "slug": "post-title-20", | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "slug": "post-title-538", | |
"type": "page", | |
- "link": "http://example.org/?page_id=4", | |
+ "link": "http://example.org/?page_id=347", | |
"title": { | |
- "rendered": "Post title 20" | |
+ "rendered": "Post title 538" | |
}, | |
"content": { | |
"rendered": "<p>Updated content.</p>\n", | |
"protected": false | |
}, | |
"excerpt": { | |
- "rendered": "<p>Post excerpt 20</p>\n", | |
+ "rendered": "<p>Post excerpt 538</p>\n", | |
"protected": false | |
}, | |
- "author": 2, | |
+ "author": 51, | |
"featured_media": 0, | |
"parent": 0, | |
"menu_order": 0, | |
"comment_status": "closed", | |
"ping_status": "closed", | |
"template": "", | |
- "meta": [] | |
+ "meta": { | |
+ "test_single": "", | |
+ "test_multi": [], | |
+ "test_bad_auth": "", | |
+ "test_bad_auth_multi": [], | |
+ "test_custom_schema": 0, | |
+ "test_custom_schema_multi": [], | |
+ "new_name": "", | |
+ "new_name_multi": [], | |
+ "test_string": "", | |
+ "test_number": 0, | |
+ "test_bool": false, | |
+ "my_meta_key": [] | |
+ } | |
}; | |
mockedApiResponse.pageRevisions = [ | |
{ | |
- "author": "2", | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
- "id": 7, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "parent": 4, | |
- "slug": "4-revision-v1", | |
+ "author": "51", | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
+ "id": 350, | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "parent": 347, | |
+ "slug": "347-revision-v1", | |
"guid": { | |
- "rendered": "http://example.org/?p=7" | |
+ "rendered": "http://example.org/?p=350" | |
}, | |
"title": { | |
- "rendered": "Post title 20" | |
+ "rendered": "Post title 538" | |
}, | |
"content": { | |
"rendered": "<p>Updated content.</p>\n" | |
}, | |
"excerpt": { | |
- "rendered": "<p>Post excerpt 20</p>\n" | |
+ "rendered": "<p>Post excerpt 538</p>\n" | |
}, | |
"_links": { | |
"parent": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/pages/4" | |
+ "href": "http://example.org/?rest_route=/wp/v2/pages/347" | |
} | |
] | |
} | |
@@ -3702,25 +3754,38 @@ mockedApiResponse.pageRevision = { | |
mockedApiResponse.MediaCollection = [ | |
{ | |
- "id": 5, | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
+ "id": 348, | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
"guid": { | |
- "rendered": "http://example.org/?attachment_id=5" | |
+ "rendered": "http://example.org/?attachment_id=348" | |
}, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "slug": "5", | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "slug": "348", | |
"type": "attachment", | |
- "link": "http://example.org/?attachment_id=5", | |
+ "link": "http://example.org/?attachment_id=348", | |
"title": { | |
"rendered": "" | |
}, | |
- "author": 2, | |
+ "author": 51, | |
"comment_status": "open", | |
"ping_status": "closed", | |
"template": "", | |
- "meta": [], | |
+ "meta": { | |
+ "test_single": "", | |
+ "test_multi": [], | |
+ "test_bad_auth": "", | |
+ "test_bad_auth_multi": [], | |
+ "test_custom_schema": 0, | |
+ "test_custom_schema_multi": [], | |
+ "new_name": "", | |
+ "new_name_multi": [], | |
+ "test_string": "", | |
+ "test_number": 0, | |
+ "test_bool": false, | |
+ "my_meta_key": [] | |
+ }, | |
"description": { | |
"rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n" | |
}, | |
@@ -3736,7 +3801,7 @@ mockedApiResponse.MediaCollection = [ | |
"_links": { | |
"self": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/media/5" | |
+ "href": "http://example.org/?rest_route=/wp/v2/media/348" | |
} | |
], | |
"collection": [ | |
@@ -3752,13 +3817,13 @@ mockedApiResponse.MediaCollection = [ | |
"author": [ | |
{ | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=/wp/v2/users/2" | |
+ "href": "http://example.org/?rest_route=/wp/v2/users/51" | |
} | |
], | |
"replies": [ | |
{ | |
"embeddable": true, | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=348" | |
} | |
] | |
} | |
@@ -3766,25 +3831,38 @@ mockedApiResponse.MediaCollection = [ | |
]; | |
mockedApiResponse.MediaModel = { | |
- "id": 5, | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
+ "id": 348, | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
"guid": { | |
- "rendered": "http://example.org/?attachment_id=5" | |
+ "rendered": "http://example.org/?attachment_id=348" | |
}, | |
- "modified": "2017-02-14T05:30:00", | |
- "modified_gmt": "2017-02-14T05:30:00", | |
- "slug": "5", | |
+ "modified": "2017-02-14T05:36:19", | |
+ "modified_gmt": "2017-02-14T05:36:19", | |
+ "slug": "348", | |
"type": "attachment", | |
- "link": "http://example.org/?attachment_id=5", | |
+ "link": "http://example.org/?attachment_id=348", | |
"title": { | |
"rendered": "" | |
}, | |
- "author": 2, | |
+ "author": 51, | |
"comment_status": "open", | |
"ping_status": "closed", | |
"template": "", | |
- "meta": [], | |
+ "meta": { | |
+ "test_single": "", | |
+ "test_multi": [], | |
+ "test_bad_auth": "", | |
+ "test_bad_auth_multi": [], | |
+ "test_custom_schema": 0, | |
+ "test_custom_schema_multi": [], | |
+ "new_name": "", | |
+ "new_name_multi": [], | |
+ "test_string": "", | |
+ "test_number": 0, | |
+ "test_bool": false, | |
+ "my_meta_key": [] | |
+ }, | |
"description": { | |
"rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n" | |
}, | |
@@ -4111,9 +4189,9 @@ mockedApiResponse.CategoryModel = { | |
mockedApiResponse.TagsCollection = [ | |
{ | |
- "id": 2, | |
+ "id": 146, | |
"count": 0, | |
- "description": "Term description 21", | |
+ "description": "Term description 539", | |
"link": "http://example.org/?tag=test", | |
"name": "test", | |
"slug": "test", | |
@@ -4122,7 +4200,7 @@ mockedApiResponse.TagsCollection = [ | |
"_links": { | |
"self": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/tags/2" | |
+ "href": "http://example.org/?rest_route=/wp/v2/tags/146" | |
} | |
], | |
"collection": [ | |
@@ -4137,7 +4215,7 @@ mockedApiResponse.TagsCollection = [ | |
], | |
"wp:post_type": [ | |
{ | |
- "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2" | |
+ "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=146" | |
} | |
], | |
"curies": [ | |
@@ -4152,9 +4230,9 @@ mockedApiResponse.TagsCollection = [ | |
]; | |
mockedApiResponse.TagModel = { | |
- "id": 2, | |
+ "id": 146, | |
"count": 0, | |
- "description": "Term description 21", | |
+ "description": "Term description 539", | |
"link": "http://example.org/?tag=test", | |
"name": "test", | |
"slug": "test", | |
@@ -4190,22 +4268,22 @@ mockedApiResponse.UsersCollection = [ | |
} | |
}, | |
{ | |
- "id": 2, | |
- "name": "User 18", | |
+ "id": 51, | |
+ "name": "User 536", | |
"url": "", | |
"description": "", | |
- "link": "http://example.org/?author=2", | |
- "slug": "user-18", | |
+ "link": "http://example.org/?author=51", | |
+ "slug": "user-536", | |
"avatar_urls": { | |
- "24": "http://0.gravatar.com/avatar/cd631944deab1f0589fedb77b3735377?s=24&d=mm&r=g", | |
- "48": "http://0.gravatar.com/avatar/cd631944deab1f0589fedb77b3735377?s=48&d=mm&r=g", | |
- "96": "http://0.gravatar.com/avatar/cd631944deab1f0589fedb77b3735377?s=96&d=mm&r=g" | |
+ "24": "http://0.gravatar.com/avatar/07cf912ba90376c8fc54c28a95e66aed?s=24&d=mm&r=g", | |
+ "48": "http://0.gravatar.com/avatar/07cf912ba90376c8fc54c28a95e66aed?s=48&d=mm&r=g", | |
+ "96": "http://0.gravatar.com/avatar/07cf912ba90376c8fc54c28a95e66aed?s=96&d=mm&r=g" | |
}, | |
"meta": [], | |
"_links": { | |
"self": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/users/2" | |
+ "href": "http://example.org/?rest_route=/wp/v2/users/51" | |
} | |
], | |
"collection": [ | |
@@ -4233,46 +4311,46 @@ mockedApiResponse.UserModel = { | |
}; | |
mockedApiResponse.me = { | |
- "id": 2, | |
- "name": "User 18", | |
+ "id": 51, | |
+ "name": "User 536", | |
"url": "", | |
"description": "", | |
- "link": "http://example.org/?author=2", | |
- "slug": "user-18", | |
+ "link": "http://example.org/?author=51", | |
+ "slug": "user-536", | |
"avatar_urls": { | |
- "24": "http://0.gravatar.com/avatar/cd631944deab1f0589fedb77b3735377?s=24&d=mm&r=g", | |
- "48": "http://0.gravatar.com/avatar/cd631944deab1f0589fedb77b3735377?s=48&d=mm&r=g", | |
- "96": "http://0.gravatar.com/avatar/cd631944deab1f0589fedb77b3735377?s=96&d=mm&r=g" | |
+ "24": "http://0.gravatar.com/avatar/07cf912ba90376c8fc54c28a95e66aed?s=24&d=mm&r=g", | |
+ "48": "http://0.gravatar.com/avatar/07cf912ba90376c8fc54c28a95e66aed?s=48&d=mm&r=g", | |
+ "96": "http://0.gravatar.com/avatar/07cf912ba90376c8fc54c28a95e66aed?s=96&d=mm&r=g" | |
}, | |
"meta": [] | |
}; | |
mockedApiResponse.CommentsCollection = [ | |
{ | |
- "id": 2, | |
- "post": 3, | |
+ "id": 140, | |
+ "post": 346, | |
"parent": 0, | |
"author": 0, | |
- "author_name": "Commenter 22", | |
- "author_url": "http://example.com/22/", | |
- "date": "2017-02-14T05:30:00", | |
- "date_gmt": "2017-02-14T05:30:00", | |
+ "author_name": "Commenter 540", | |
+ "author_url": "http://example.com/540/", | |
+ "date": "2017-02-14T05:36:19", | |
+ "date_gmt": "2017-02-14T05:36:19", | |
"content": { | |
"rendered": "<p>This is a comment</p>\n" | |
}, | |
- "link": "http://example.org/?p=3#comment-2", | |
+ "link": "http://example.org/?p=346#comment-140", | |
"status": "approved", | |
"type": "comment", | |
"author_avatar_urls": { | |
- "24": "http://1.gravatar.com/avatar/?s=24&d=mm&r=g", | |
+ "24": "http://2.gravatar.com/avatar/?s=24&d=mm&r=g", | |
"48": "http://2.gravatar.com/avatar/?s=48&d=mm&r=g", | |
- "96": "http://0.gravatar.com/avatar/?s=96&d=mm&r=g" | |
+ "96": "http://2.gravatar.com/avatar/?s=96&d=mm&r=g" | |
}, | |
"meta": [], | |
"_links": { | |
"self": [ | |
{ | |
- "href": "http://example.org/?rest_route=/wp/v2/comments/2" | |
+ "href": "http://example.org/?rest_route=/wp/v2/comments/140" | |
} | |
], | |
"collection": [ | |
@@ -4284,7 +4362,7 @@ mockedApiResponse.CommentsCollection = [ | |
{ | |
"embeddable": true, | |
"post_type": "post", | |
- "href": "http://example.org/?rest_route=/wp/v2/posts/3" | |
+ "href": "http://example.org/?rest_route=/wp/v2/posts/346" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment