WordPress REST API (Version 2): Breakdown
The WordPress REST API is a plugin which makes it possible to interact with WordPress from external applications through the use of the Representational State Transfer (REST) protocol. Using this protocol, developers are able to create custom applications that are able to easily interact and query the information stored on a WordPress site. This plugin provides an interface (known as an "API endpoint") through which other applications can send requests to WordPress and receive responses. These responses contain the information from the WordPress database which can be used for custom applications or other processes.
The WordPress REST API is a relatively new plugin, having first been released in December 2016. Since then, it has received a number of updates which seek to increase its functionality and compatibility with other plugins. For example, the latest update includes compatibility with the WordPress Gutenberg Editor, allowing users to display and post content directly from the WordPress REST API. The plugin also offers support for the PHP Data Objects (PDO) library, allowing developers to easily interact with the WordPress database.
Another important feature of the WordPress REST API is its ability to authenticate user sessions, allowing applications to receive privileged access to a WordPress site and the associated data. This feature is known as "JSON web Tokens" or JWT and it is especially useful for applications that require secure access to a WordPress site. All requests sent to the WordPress REST API endpoint are encrypted using industry-standard security protocols and users must be authenticated in order to receive access to the data they require.