Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
"article": {
"id": 1,
"title": "Hello world!",
"author": "Author name",
"link": "http:\/\/blog.dummydomainname.com\/2015\/12\/02\/hello-world\/",
"image": {
"src": "http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2013\/03\/featured-image-vertical.jpg",
"width": 300,
"height": 580
},
"date": "December 02, 2015",
"timestamp": 1449078448,
"description": "<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!<\/p>",
"content": "<p>en Welcome to WordPress. This is your first post. Edit or delete it, then start writing!<\/p>\n<div style=\"width:910px;\"><img src=\"http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2012\/06\/dsc20050604_133440_34211.jpg\" width=\"640\" height=\"480\" alt=\"dsc20050604_133440_34211.jpg\" \/><\/div>",
"categories": [1,2],
"comment_status": "open",
"no_comments": 5,
"show_avatars": 1,
"require_name_email": 0
}
}
{
"articles": [
{
"id": 1,
"title": "Post Title",
"author": "Author name",
"link": "http:\/\/blog.dummydomainname.com\/2016\/03\/11\/post-title\/",
"image": "",
"date": "Fri, March 11",
"timestamp": 1457735104,
"description": "<p>This is the article description, a part of the content<\/p>",
"content": "",
"categories": [2]
},
{
"id": 5,
"title": "Another Post Title",
"author": "Author Name",
"link": "http:\/\/blog.dummydomainname.com\/2012\/12\/09\/another-post-title\/",
"image": {
"src": "http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2013\/03\/featured-image-vertical.jpg",
"width": 300,
"height": 580
},
"date": "December 09, 2012",
"timestamp": 1355043654,
"description": "<p>This is the article description, a part of the content<\/p>",
"content": "",
"categories": [1,2]
},
...
]
}
{
"categories": [
{
"id": 0,
"order": 1,
"name": "Latest",
"name_slug": "Latest",
"image": "",
"articles": [
{
"id": 1,
"title": "Post Title",
"author": "Author name",
"link": "http:\/\/blog.dummydomainname.com\/2016\/03\/11\/post-title\/",
"image": "",
"date": "Fri, March 11",
"timestamp": 1457735104,
"description": "<p>This is the article description, a part of the content<\/p>",
"content": "",
"categories": [2]
},
...
]
},
{
"id": 1,
"order": 2,
"name": "Post category",
"name_slug": "post-category",
"link": "http:\/\/blog.dummydomainname.com\/category\/post-category\/",
"image": {
"src": "http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2013\/03\/featured-image-vertical.jpg",
"width": 300,
"height": 580
},
"articles": [
{
"id": 1,
"title": "Post Title",
"author": "Author name",
"link": "http:\/\/blog.dummydomainname.com\/2016\/03\/11\/post-title\/",
"image": "",
"date": "Fri, March 11",
"timestamp": 1457735104,
"description": "<p>This is the article description, a part of the content<\/p>",
"content": "",
"categories": [2]
},
...
]
},
{
"id": 2,
"order": 3,
"name": "Child post category",
"name_slug": "child-post-category",
"link": "http:\/\/blog.dummydomainname.com\/category\/child-post-category\/",
"image": {
"src": "http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2013\/03\/featured-image-vertical.jpg",
"width": 300,
"height": 580
},
"articles": [
{
"id": 5,
"title": "Another Post Title",
"author": "Author Name",
"link": "http:\/\/blog.dummydomainname.com\/2012\/12\/09\/another-post-title\/",
"image": {
"src": "http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2013\/03\/featured-image-vertical.jpg",
"width": 300,
"height": 580
},
"date": "December 09, 2012",
"timestamp": 1355043654,
"description": "<p>This is the article description, a part of the content<\/p>",
"content": "",
"categories": [1,2]
},
...
]
},
...
],
"wpmp": "2.2.2"
}
{
"comments": [
{
"id": 1,
"author": "Comment author",
"author_url": "https:\/\/blog.dummydomainname.com\/",
"date": "December 02, 2015",
"content": "Hi, this is a comment.",
"article_id": 5,
"avatar": "http:\/\/0.gravatar.com\/avatar\/?s=50&#038;d=mm&#038;r=g"
},
{
"id": 2,
"author": "Comment author",
"author_url": "https:\/\/blog.dummydomainname.com\/",
"date": "January 13, 2016",
"content": "Hi, this is another comment.",
"article_id": 5,
"avatar": "http:\/\/0.gravatar.com\/avatar\/?s=50&#038;d=mm&#038;r=g"
},
...
]
}
{
"page": {
"id": 1086,
"parent_id": 0,
"title": "About",
"link": "http:\/\/blog.dummydomainname.com\/about\/",
"image": {
"src": "http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2013\/03\/page-image-691x1024.jpg",
"width": 691,
"height": 1024
},
"content": "<p>This is the content of the page<\/p>",
"has_content": 1
}
}
{
"pages": [
{
"id": 1086,
"parent_id": 0,
"order": 1,
"title": "About",
"link":"http:\/\/blog.dummydomainname.com\/about\/",
"image": {
"src": "http:\/\/blog.dummydomainname.com\/wp-content\/uploads\/2013\/03\/page-image-691x1024.jpg",
"width": 691,
"height": 1024
},
"content": "",
"has_content": 1
},
{
"id": 1409,
"parent_id": 0,
"order": 3,
"title": "Another page",
"link":"http:\/\/blog.dummydomainname.com\/another-page\/",
"image": "",
"content": "",
"has_content": 1
},
{
"id": 1388,
"parent_id": 1086,
"order": 2,
"title": "Child page",
"link":"http:\/\/blog.dummydomainname.com\/child-page\/",
"image": "",
"content": "",
"has_content": 1
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment