Join Morten Rand-Hendriksen for an in-depth discussion in this video Prerequisites: What you need to follow along, part of WordPress: REST API.
On my computer, I have WordPress running under WampServer with the virtual host address set to restful.dev. I've populated the site with standard content from my own blog and that content includes posts, pages, and other data. I'll use the Atom code editor to write and edit code and a little later in the course, we'll install a Chrome extension called Postman, to inspect the WordPress rest API. So you need the Chrome browser as well. So, if you haven't done so already, set up a local WordPress site, fill it with content, and boot up your favorite code editor.
- Using a REST client to communicate with a REST API
- Reviewing available routes, endpoints, and arguments
- Adding custom post types and taxonomies
- Altering the API response
- Using PHP for resiliency
- Passing info using wp_localize_script()
- Setting up a REST API request through AJAX
- Outputting selected post data to the front end
- Formatting post data to match a theme
- Triggering AJAX for an infinite scroll effect
- Using AJAX to load subsequent responses