gasilpositive.blogg.se

Postman rest client
Postman rest client














So let’s see this.įor this example, you will be using the Fixer.io currency exchange API for demonstration.ġ- Head over to fixer.io and click Get Free API Key.Ģ- Click Get Free API Key and you will be redirected to a sign up page. In the current example, authorization is achieved through adding one or more parameters to the API URL, namely after a question mark.

#POSTMAN REST CLIENT HOW TO#

Now you are going to learn how to make requests to APIs which require authorization. You should end up with a response containing the exchange rates of all the currencies in relation to the USD.ĪPI Calls (With Authorization in Query Params) Click the + icon at the top to open a new tab.Įnter into the URL field and click Send. This time however, you are going to get all exchange rates with the USD as the base currency. Now you are going to make another GET request. Below that you can select the different display formats of the data returned. By clicking through the tabs, you can view extra information about the response such as the cookies and headers returned.

postman rest client

To the left, you get to see even more details. You also get to see how long the request took. First of all, to the far right, you get to see the status code of the response and the size of data returned. Postman provides you with some really useful data about the request you just made. You should end up with a response in the textarea below. You are going to fetch the exchange rate between two currencies (USD, GBP) from ExchangeRatesApi.Ģ- In the drop down to the left, make sure the method type selected is GET. Launch Postman and close the welcome dialog. The first thing you are going to do is to make an API call which does not require authorization. Installation should be straightforward across different platforms.

postman rest client

The only thing you need to do before starting this tutorial is to download and install Postman.

  • API Calls (With Authorization in Headers).
  • postman rest client

  • API Calls (With Authorization in Query Params).













  • Postman rest client