Experience Level: Beginner to Intermediate PHP
In this article – published Dec. 12, 2018 – Brenda Barron paints a dynamic picture of what the WordPress REST API is, its history and how it works, and some of its potential use cases in real-world development.
- What the WordPress REST API is and how it works
- Overview of REST API concepts, including routes & endpoints, requests, responses, schema, controllers, and how to access endpoints
- Extending the REST API, with code examples
- Explanation of other key concepts, including the use of namespacing for endpoints & routes, sanitization, validation, callbacks, and more.
True to its title, this article provides an excellent overview of what the WP REST API is, how to get started understanding how it works, and a little bit on how to start extending it. It doesn’t go particularly in-depth with code, but it does provide an excellent foundation upon which developers can build an understanding of what the WP REST API is capable of.