Top 10 Resources: WordPress REST API

The WordPress REST API moves the CMS closer to becoming a fully-fledged application framework. With this API, site data (such as posts, taxonomies, users, and more) can be retrieved in simple JSON format, and can be easily updated using HTTP requests. This implementation provides developers with access to native WordPress functionality from external sources, such as a decoupled website or mobile application.

Below we present top resources from across the web that introduce the REST API, discuss common implementations and workflows, and provide tutorials for specific uses, such as adding custom endpoints.

9 Awesome Implementations of the WordPress REST API

With all the buzz that's been going around the WP REST API for the past year or so, I thought it's time we take a look at some of the implementations that have been made recently (or not so recently).

Introducing the WordPress REST API

WP-API is a feature plugin that is intended to be included in the WordPress core. It provides a RESTful API for interacting with the site remotely and retrieving, adding, or inserting content. In this first part of the series, we will introduce ourselves to the plugin and set up a basic working environment.

Boost Your WordPress Workflow with REST API

In this post, Ryan McCue explains how you can use the REST API for pulling content and data out of WordPress, as well as writing or updating posts.

Leveraging the WordPress REST API

The WordPress REST API Plugin is a simple-to-use plugin that allows you to access your WordPress posts, pages and other data via a JSON-based REST API. How do we use this fantastic plug-in? Let’s walk through it by building a simple and practical application: a website health dashboard that monitors the status of a list of websites.

WordPress API: Adding Custom Endpoints

When working with custom content in WordPress, it is likely that you will come to a point where you want to retrieve that custom data via the WordPress REST API. This tutorial aims to explain those methods and provide useful examples.

Display WordPress Posts on Another Site with WordPress REST API

Have a WordPress site and want to include your posts on an external site? In this tutorial, I will show you how to use the WordPress REST API to display your posts on a static site with just HTML, CSS, and Javascript.

Building a Slack Bot with Node.js and WordPress REST API

Some of my first experiments in the world of building a Slack bot was to develop a basic Slash command using the WordPress REST API as a backend. If you or your team are the only users that intend to use it, you can just set it up as a simple integration. However if you wish to distribute it for others to use you can package it into a Slack bot, as described in this post.

WordPress REST API: Introducing the Authentication Broker

As astute followers of the REST API project may have noticed, authentication with the API has been difficult and incomplete. Connecting a client to multiple sites is near-impossible, as the distributed nature of WordPress would require registering on every site. To solve the decentralised registration problem, the REST API team (lead by myself and Ryan) is introducing the Authentication Broker system.

Angular 2 and WordPress Theme Setup

This tutorial starts from a running an installation of WordPress somewhere - it could be live or on localhost, whatever Dev environment you roll with. Also, we’ll be downloading a bunch of packages via npm. We’ll be building everything else from scratch. Let’s dive right in.

WordPress REST API: JSON WEB Tokens (JWT) User Authentication

In this post, we code a plugin to authenticate a user using JSON web tokens.

Topics Website Technology, Development, WordPress