Plugin to manage the wordpress posts via API with JWT authentication.
If we want set a thumbnail in a post, we must upload the image first into a gallery.
GET http://example.com/wp-json/arya/v1/ping
{
result: true
}
POST http://example.com/wp-json/arya/v1/posts/image
Title | Type | Description |
---|---|---|
image_url | string | the url of the image |
{
result: true,
id: 18
}
POST http://example.com/wp-json/arya/v1/posts
Title | Type | Description |
---|---|---|
title | string | title of post |
excerpt | string | a little description of content |
status | string | will be publish or draft |
content | string | the content of post |
image_id | number | the id of the image uploaded previusly |
{
result: true,
id: 15,
url: 'http://example.com/post_example'
}