Created
November 16, 2019 09:46
-
-
Save kagg-design/f93f785cc4d7f3e4d0368425c0407645 to your computer and use it in GitHub Desktop.
Sample rest output
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
[ | |
{ | |
"id": 217, | |
"date": "2019-11-14T11:20:23", | |
"date_gmt": "2019-11-14T08:20:23", | |
"guid": { | |
"rendered": "http:\/\/wpml.test\/?page_id=217" | |
}, | |
"modified": "2019-11-15T12:36:54", | |
"modified_gmt": "2019-11-15T09:36:54", | |
"slug": "test3", | |
"status": "publish", | |
"type": "page", | |
"link": "http:\/\/wpml.test\/test3\/", | |
"title": { | |
"rendered": "test3" | |
}, | |
"content": { | |
"rendered": "\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"cb249520-7e33-4755-9f85-c736bcce11a9\"><p>Line1<br>br<\/p>\n<p>Line2<\/p><\/div>\n\n\n\n<p>par2<\/p>\n\n\n<p>Classic1<br \/>br<\/p>\n<p>Classic2<\/p>\n\n\n<pre class=\"wp-block-code\"><code>code1\ncode2<\/code><\/pre>\n\n\n\n<div class=\"wp-block-media-text alignwide\"><figure class=\"wp-block-media-text__media\"><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">media1<br>media2<\/p>\n\n\n\n<p><\/p>\n<\/div><\/div>\n", | |
"protected": false | |
}, | |
"excerpt": { | |
"rendered": "<p>par2 Classic1br Classic2 media1media2<\/p>\n", | |
"protected": false | |
}, | |
"author": 1, | |
"featured_media": 0, | |
"parent": 0, | |
"menu_order": 0, | |
"comment_status": "closed", | |
"ping_status": "closed", | |
"template": "", | |
"meta": [], | |
"_links": { | |
"self": [ | |
{ | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/pages\/217" | |
} | |
], | |
"collection": [ | |
{ | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/pages" | |
} | |
], | |
"about": [ | |
{ | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/types\/page" | |
} | |
], | |
"author": [ | |
{ | |
"embeddable": true, | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/users\/1" | |
} | |
], | |
"replies": [ | |
{ | |
"embeddable": true, | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/comments?post=217" | |
} | |
], | |
"version-history": [ | |
{ | |
"count": 10, | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/pages\/217\/revisions" | |
} | |
], | |
"predecessor-version": [ | |
{ | |
"id": 289, | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/pages\/217\/revisions\/289" | |
} | |
], | |
"wp:attachment": [ | |
{ | |
"href": "http:\/\/wpml.test\/wp-json\/wp\/v2\/media?parent=217" | |
} | |
], | |
"curies": [ | |
{ | |
"name": "wp", | |
"href": "https:\/\/api.w.org\/{rel}", | |
"templated": true | |
} | |
] | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment