Join Morten Rand-Hendriksen for an in-depth discussion in this video Using tools to access the API, part of WordPress REST API (WP-API): First Look.
- View Offline
- The purpose and value of the WP-API,…is that we'll be able to send a request to the database…through the API and then get the database content…back in a compact, easy to read format.…However, as you saw when I entered a route here,…that easy to read format is not really that easy to read…out of the box, at least not in the browser.…And that's because the browser is not set up to read…JSON out of the box.…The browser expects us to take this information…and then process it through some sort of programming…language to display it in a human, readable way.…
However, you can read this you just have to…parse it through an application.…Now there are many applications you can use for this.…You can use Chrome Developer Tools if you want to.…You can add extensions.…There's even a Plugin you can use to read the JSON API.…But, I find that the easiest tool to use is this one.…It's called, Postman.…And you can add it to Chrome.…Now, Postman is not actually a thing that…works inside Chrome.…It works as a Chrome app, and is a stand alone app.…
With the WP API, developers can access the data on a WordPress site—such as users, posts, and categories—programmatically. The result is an expansion of the already limitless field of possibilities where theme and plugin development is concerned.
This course is a first look at the WP API: what it is, how to get it running, how to interact with it, what it can do for us, and what we can do with it. Join Morten Rand-Hendriksen, your guide and WordPress guru, as he walks through the tools and major features (such as routes and endpoints) of the WP API, as well as a short project that shows how this new API will be used in real-world workflows.
- Installing the WP API
- Exploring common routes
- Examining WP API output
- Building plugins with the WP API
- Crafting WP API URL requests
- Creating AJAX functions with the WP API