So I've been head scratching over this over a couple of days and finally got some light in the end of the tunnel. I wanted to share this in the public so another one of our breed won't have to go though the hell I went.
What I've done here is, querying for post types using WP_Query and then feed them to the standard WP REST API, so it would bring more data to the table; as I wanted. Enjoy!
You can use it as,
GET/wp-json/unicorn/v1/blog-posts/standard/4
Note:
countis optional.
No comments:
Post a Comment