First up, you will need to set up your WordPress website. Obviously, you should not use a production site for learning purposes; therefore, I will strongly advise you to set up a test installation of WordPress for experimenting and playing with REST API. Depending on your mode of operation, you may choose to do it the way it suits you—some developers prefer having a local version of WordPress running on their device, whereas others, such as myself, set up WordPress live on a test server and access it accordingly.
You might also do it via Vagrant, if that suits you.
You may then install the WordPress REST API plugin much like any other normal plugin. Find the latest version at https://wordpress.org/plugins/rest-api/ .
That said, let us get started with REST requests in WordPress. As we have seen in the last chapter, REST requests generally revolve around the four common HTTP transport methods: GET, PUT, POST, and DELETE. Plus, we have also learned that GET and POST requests...