This API adheres to v1.0 of the JSONAPI specification.
| API Actions |
|---|
| Create a Post |
| Find All the Posts |
| Find a Specific Post |
| Remove a Specific Post |
| Update a Specific Post |
Create a new Post and save it to the database.
/api/v1/posts
POST
None
{
"data": {
"attributes": {
"title": String,
"body": String,
"kind": String,
"tags": String,
"isPrivate": Boolean,
"isPublished": Boolean
},
"links": {
"first": String,
"next": String,
"prev": String,
"last": String,
"related": String
},
"relationships": {
"author": {
"data": {
"_type": String,
"_id": String
}
}
}
}
}Returns a JSON document with an array of all the posts within the database.
/api/v1/posts
GET
None
None
{
"data": [{
"type": String,
"_id": String,
"attributes": {
"title": String,
"body": String,
"kind": String,
"created": Date,
"updated": Date,
"tags": String,
"isPrivate": Boolean,
"isPublished": Boolean
},
"links": {
"first": String,
"next": String,
"self": String,
"prev": String,
"last": String,
"related": String
},
"relationships": {
"author": {
"data": {
"_type": String,
"_id": String
}
}
}
}, ...]
}Returns a JSON document with an array of all the posts within the database.
/api/v1/posts/:id
GET
None
None
{
"data": {
"type": String,
"_id": String,
"attributes": {
"title": String,
"body": String,
"kind": String,
"created": Date,
"updated": Date,
"tags": String,
"isPrivate": Boolean,
"isPublished": Boolean
},
"links": {
"first": String,
"next": String,
"self": String,
"prev": String,
"last": String,
"related": String
},
"relationships": {
"author": {
"data": {
"_type": String,
"_id": String
}
}
}
}
}Returns a JSON document with an array of all the posts within the database.
/api/v1/posts/:id
DELETE
None
None
Returns a JSON document with an array of all the posts within the database.
/api/v1/posts/:id
PATCH
None
None