Skip to content

Latest commit

 

History

History
71 lines (61 loc) · 1.32 KB

blog_categories.md

File metadata and controls

71 lines (61 loc) · 1.32 KB

blog_categories

GET /api/v1/blog_categories

Required scope: read_content, content

Sample Model

{
	"id": 1,
	"blog_id": 1,
	"parent_category_id": 0,
	"type": "Tag",
	"description": "",
	"updated_at": "2014-03-05T08:46:30.627-06:00",
	"created_at": "2014-03-05T08:46:30.627-06:00",
	"name" "test",
	"blog_category_path": ""
}

Nested Resources

Accessible via the ?expand= parameter or /api/v1/blog_categories/{id}/{nested_resource}.

posts

GET /api/v1/blog_categories?expand=posts
GET /api/v1/blog_categories/{id}/posts
{
	...
	"posts": [
		{
			"id": 1,
			"blog_id": 1,
			"title": "Lorem ipsum",
			"keywords": "",
			"description": "",
			"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>",
			"published_at": "2014-03-05T08:34:00-06:00",
			"updated_at": "2014-03-05T08:46:30.713-06:00",
			"created_at": "2014-03-05T08:36:18.377-06:00",
			"teaser_title": "Lorem ipsum",
			"teaser_description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
			"post_image_url": "",
			"teaser_image_url": "",
			"author_profile_id": 1,
			"are_comments_enabled": false,
			"is_featured": false,
			"is_stickied": false,
			"are_comments_locked": false,
			"view_count": 6
		},
		...
	],
	...
}