Article
Article resource is located at /admin/api/site/articles.json
[ { "comments_count": 0, "excerpt": "Post news of …", "url": "http://mysite.com/blog/how-i-wrote-my-first-article", "page": { "url": "http://mysite.com/blog", "title": "Blog" }, "title": "How I wrote my first article", "comments_url": "http://mysite/admin/api/site/articles/1234/comments", "author": { "name": "me@mysite.com" }, "language": { "code": "en" }, "body": "The above is excerpt of the article…", "created_at": "2012/10/30 11:41:54 +0000" }, { "comments_count": 0, "excerpt": "Post news of any subject …", "url": "http://mysite.com/blog/having-sample-news-pieces", "page": { "url": "http://welcome-marseille.kraftal.com/blog", "title": "Blog" }, "title": "Having sample news pieces?", "comments_url": "http://mysite.com/admin/api/site/articles/1235/comments", "author": { "name": "me@mysite.com" }, "language": { "code": "en" }, "body": "The above is excerpt of the article…", "created_at": "2012/10/30 11:41:54 +0000" } ]
Filter by tags
Article list can be filtered by tag names by using tagged query parameter /admin/api/site/articles.json?tagged=tag1
Multiple tags may be given by separating tag names by commas: /admin/api/site/articles.json?tagged=tag1,tag2
Include tags in result
Tags can be returned with articles json, when providing include_tags query parameter
/admin/api/site/articles.json?include_tags=1
[ { "comments_count": 0, "excerpt": "Post news of …", "url": "http://mysite.com/blog/how-i-wrote-my-first-article", "page": { "url": "http://mysite.com/blog", "title": "Blog" }, "title": "How I wrote my first article", "comments_url": "http://mysite/admin/api/site/articles/1234/comments", "author": { "name": "me@mysite.com" }, "language": { "code": "en" }, "tags": [ {"name": "Tag1", "path": "tag1"}, {"name": "Tag2", "path": "tag2"}, ], "body": "The above is excerpt of the article…", "created_at": "2012/10/30 11:41:54 +0000" } ]