You absolutely need test coverage for your WP REST API project. I wrote a tutorial for Pantheon that I hope becomes the canonical reference point for everyone considering whether or not to write tests for their endpoints — please do.
You absolutely need test coverage for your WP REST API project. I wrote a tutorial for Pantheon that I hope becomes the canonical reference point for everyone considering whether or not to write tests for their endpoints — please do.
First of all, don’t expect much of this blog post. It’s intended to capture some thoughts and opinions I’ve noted down while working on my first real-world React / WP REST API application. It’s not intended to be polished, professional-grade marketing copy. It also assumes you have some familiarity with React, Redux, and the WP REST API — if […]
Earlier today, I tweeted: Right about now seems like a good time to get official feedback on WP REST API from @wordpress’s lead developers and committers. Just sayin’ Helen, a lead WordPress developer, replied with: Where does this feedback go, how is it structured, what makes it “official”, and how binding is anything that is […]
The proposal by the team was to include the 4 content endpoints when they are ready. We had a lengthly overview as to the progress of those endpoints, more details on what we feel is left to be done can be seen at https://github.com/wp-api/wp-api/issues?q=is%3Aopen+is%3Aissue+milestone%3A2.0 Why these endpoints specifically? Because they are co-dependent for the most […]
WP REST API: Version 2.0 Beta 12. "Canyonero"
Earlier today, I gave a talk at A Day of REST about unlocking the potential of the WP REST API at the command line — by creating a more RESTful WP-CLI. Check out the project on Github, and stay tuned for the v0.1.0 release. Read on for my (loosely edited) annotated slides from the presentation.
WP REST API: Version 2.0 Beta 11. “Give me a white wine spritzer!”
Much of the WP REST API v2 documentation is automatically generated from demo.wp-api.org/wp-json/?context=help. A Ruby script dumps the JSON into _data, and Jekyll generates pages like this: It would be cool if someone wrote a WordPress theme (or plugin) to automatically generate a documentation site from a WP REST API index — and the only configuration parameter was […]
WP REST API: Version 2.0 Beta 10, with security releases. If you’re running WP-API in production, you need to update. Only took 3 hours to tag 11 releases!
A good measure of the utility of WP_REST_Posts_Controller and brethren would be to test how much (or little) time it takes for a developer to correctly model their custom post type data by extending it. If it’s easy to do, then we’ve established a great abstraction. If there are pain points or places we need to […]