Skip to content

Blog Post

Blog posts can be created for any realm.

Field Name Description Type
title* Title The post title. string
body Post body The post body. Rendered as HTML — line breaks need a <br />. string

* = Required

View a list of posts (paged)

Return A list of post objects

{
"post": [
{
"id": "5615055",
"title": "PHP meetup",
"body": "Let's meet and chat about PHP",
"created": 1386886391,
"links": {
"self": "http:\/\/...\/posts\/5615055"
}
},
{
"id": "5615045",
"title": "REST API meetup",
"body": "Let's meet and chat about REST API",
"created": 1386886221,
"links": {
"self": "http:\/\/...\/posts\/5615045"
}
}
]
}

View a specified blog post

Return A post

{
"id": "5615045",
"title": "REST API meetup",
"body": "Let's meet and chat about REST API",
"created": 1386886221
}

Create a blog post

Content A post

{
"title": "My first blog",
"body": "<strong>my blog content<\/strong>"
}

Return A post

{
"id": "5615045",
"title": "REST API meetup",
"body": "Let's meet and chat about REST API",
"created": 1386886221,
"links": {
"self": "http:\/\/...\/posts\/5615045"
}
}

Modify a blog post

Content An object containing blog post fields

{
"title": "My new blog title"
}

Delete a blog post (cannot be undone)