This user guide only applies if your account and project is on our old platform, i.e. if your project's URL begins with https://xp-dev.com rather than https://<your-account>.xp-dev.com. If your account is on our new platform, you should be using this user guide instead.
Each Blog Object has the following attributes:
Attribute | Description |
---|---|
id | Unique Blog ID |
title | Blog title |
text | Blog text in Textile |
textHtml | Blog text in HTML |
published | Whether the Blog is published or not |
GET
request to https://xp-dev.com/api/v1/blogs/project/<project-id>
:
curl https://xp-dev.com/api/v1/blogs/project/3
Responses will be a list of Blogs Objects:
{"response":[
{
"id":3,
"project":3,
"published":false,
"text":"First blog entry",
"title":"First entry",
"htmlText":"<p>First blog entry</p>"
},
...
]}
POST
request to https://xp-dev.com/api/v1/blogs/
with the following
attributes:
Mandatory:
Example request:
curl -X POST -H 'Content-Type: application/json' -d '{"project":3,"published":false,"text":"This is the first blog entry","title":"First entry"}' https://xp-dev.com/api/v1/blogs/
Responses will be in the form of a single Blog Object
GET
request to https://xp-dev.com/api/v1/blogs/<blog-id>
. For
example:
curl https://xp-dev.com/api/v1/blogs/6
Responses will be in the form of a single Blog Object
PUT
request to https://xp-dev.com/api/v1/blogs/<blog-id>
with the
following attributes:
Mandatory:
Example request:
curl -X PUT -H 'Content-Type: application/json' -d '{"published":true,"text":"This is the first blog entry","title":"First entry"}' https://xp-dev.com/api/v1/blogs/6
Responses will be in the form of a single Blog Object
DELETE
request to https://xp-dev.com/api/v1/blogs/<blog-id>
:
curl -X DELETE https://xp-dev.com/api/v1/blogs/6
Feel free to contact us if you need any assistance.