Next lesson playing in 5 seconds

  • 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

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, 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.

Back to the top