Extends the WP-REST API with custom read only endpoints.
If you have a WordPress blog at http://www.example.com you can reach the read only REST API by requesting these endpoints:
http://www.example.com/wp-json/wprestapiextensions/v1/posts?page=1&per_page=12&search=query&tags=tag1+tag2
http://www.example.com/wp-json/wprestapiextensions/v1/tag?tag_name=tag1
http://www.example.com/wp-json/wprestapiextensions/v1/post?post=some-post-slug
The above endpoints will return a 404 error if nothing was found.
- Download to your Wordpress plugin folder and unzip.
- Activate plugin.
- Moving the cache mechanism to its own plugin at: https://github.com/larjen/WPRestCache
- Removing transient caching from within the plugin, as it was ineffective compared to static file caching.
- Refactoring plugin for better performance.
- Adding an infinite cache for faster rest-api requests.
- Deploy cache mechanism from control panel.
- Optional wipe cache functionality when posts have been altered.
- Added search capability.
- Added simple pagination.
- Added a five minute caching.
- Added new endpoint for posts
- Wrapping responses
- If you request a tag with spaces in the name, before failing it will also try searching for a tag where spaces has been replaces with '-' tags.
- Added endpoint so you can get a tag.
- Added categories to the post response.
- Uploaded plugin.