- Overview
- Transcript
3.2 Installing the HTTP Client Postman
In this lesson, we’ll install the HTTP client Postman to begin working with the WP REST API. HTTP clients make it easy to test and explore APIs by providing an interface for preparing different types of requests and viewing the server responses with proper syntax highlighting.
Related Links
1.Introduction1 lesson, 01:17
1.1Introduction01:17
2.How REST APIs Work3 lessons, 15:33
2.1HTTP Methods and Response Codes04:34
2.2Routes and Endpoints03:43
2.3JSON07:16
3.Set Up the Environment2 lessons, 08:22
3.1Set Up a Local WordPress Install04:16
3.2Installing the HTTP Client Postman04:06
4.Exploring the WordPress REST API4 lessons, 21:43
4.1The Index Route05:59
4.2OPTIONS Requests03:26
4.3Retrieve Data With GET Requests05:28
4.4Create, Update, and Delete Data06:50
5.The WordPress REST API in Action2 lessons, 16:47
5.1Retrieve Data With jQuery08:02
5.2Create Data With the WP REST API and jQuery08:45
6.Conclusion1 lesson, 00:59
6.1Conclusion00:59
3.2 Installing the HTTP Client Postman
Hey folks, and welcome back to the course introducing the WP Rest A.P.I. I'm your instructor Bilal Shahid. When working with the Rest API, it's extremely important to have a tool that makes testing the API as easy as possible. And there comes the need for an SUDB client. They make working with an API much more fun and provide features, such as selecting the type of request we're about to send, modifying request headers and body, and analyzing the response with proper syntax highlighting. The client we will be using throughout this course is Postman, explicitly an app for the Google Chrome browser. So first of all, you need to have Google Chrome installed on your system, and you can get Chrome from it's official site. And now, we can install the Postman client from its official site, getpostman.com. And here, you have two options. You can either install it as Chrome App, or if you are using Mac, you can install it as Mac App. We will install it as chrome app by clicking this grey button. This will take us to chrome web store, and finally we can click this button that says add to chrome and installation will begin. The installation will take some time. So I'm pausing right now, and we'll return back as soon as the installation completes. All right, so installation has been completed, and you can launch Postman by Google app launcher that has just been installed on our system. So this is the interface off post man, and it contains several options for preparing the request to the server and to view the response. The first thing you notice is this big address bar that is the URL of the request. On this left is a drop down from where you can change the type of the request. The default type is GET, but there are many other options available including post, put, delete, options and add. On the right of the address bar is an area for modifying URL parameters. Clicking this button would reveal key value fields from where you can define your URL parameters, and those parameters would appear with the URL. You can delete these parameters by clicking this remove button, and then they will disappear from the URL. And we can hide this area again. From this drop down, you can select the type of authentication you are using for sending your requests. Since, we will be using basic authentication method, selecting this basic auto option would reveal username and password first where you can enter your credentials. And finally you can define custom headers by going to this header step and define them using key value fields. Alright so this was a brief overview of the postman's UI. Of course, there are other options available, which you can find out more by going to the official documentation, but this much would do it for now. In the next video, we will begin by working with data route JPI using the postman client. See you in the next video.