Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

API Testing Tutorial Part 14 – Sending First GET Request in Postman – Make Selenium Easy

Posted on 10/16/2018 By admin

Hello Folks,

As part of our API Testing series, we will see “Sending first GET request in Postman”.

First of all we need some APIs to test. There are many public APIs available which you can use for testing purpose. I will suggest you to register at below site to use free APIs for testing:

GoRest API for Testing

I will keep sharing links of public APIs for testing.

Above website provides you APIs for basic operations i.e. CRUD which we have already learnt in previous posts.

To perform a GET request below steps are performed:

  1. Select the “GET” in http methods drop down.
  2. Pass the request URI in address bar of Postman.
  3. Add authorization if applicable.
  4. Add headers if applicable.
  5. Click on Send button.

See the image below:

Explanation:

We will pick a GET api from GoRest which list all users:

  • GET /public-api/users/: list all users.

Above we see ‘GET‘ which says GET HTTP operation can be performed on resource “/public-api/users/“. To make a proper URI we need to suffix base URL which is “https://gorest.co.in/” with resource name as  “https://gorest.co.in/public-api/users/“.

GET request does not required any body i.e. payload i.e Request body. You can notice ‘body’ tab is disabled in postman for GET request in above image.

Since we don’t require any authorisation and headers as of now, so skipping those tabs. Now click on Send button. You will see response body in JSON down. You can see details of all users listed in response body. Details of one user is below:

{ “id”: “2958”, “name”: “Brook Boyle”, “gender”: “female”, “dob”: “1977-06-07”, “email”: “[email protected]”, “phone”: “+1 (284) 666-7715”, “website”: “http://www.wuckert.biz/”, “address”: “3854 Littel ShoalsSouth Marvin, MN 95343”, “status”: “active”, “_links”: { “self”: { “href”: “https://gorest.co.in/public-api/users/2958” }, “avatar”: { “href”: “https://lorempixel.com/250/250/people/?70206” } } } },

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

{

  “id”: “2958”,

  “name”: “Brook Boyle”,

  “gender”: “female”,

  “dob”: “1977-06-07”,

  “email”: “[email protected]”,

  “phone”: “+1 (284) 666-7715”,

  “website”: “http://www.wuckert.biz/”,

  “address”: “3854 Littel ShoalsSouth Marvin, MN 95343”,

  “status”: “active”,

  “_links”: {

    “self”: {

      “href”: “https://gorest.co.in/public-api/users/2958”

    },

    “avatar”: {

      “href”: “https://lorempixel.com/250/250/people/?70206”

    }

  }

}

},

Also postman returns you the status code and response time. Response time is the time span in which request was hit to endpoint and return response.

More about API Testing in upcoming posts. Stay tuned.

If you have any doubt, feel free to comment below. If you like my posts, please like, comment, share and subscribe. #ThanksForReading

#HappyApiTesting

My name is Amod Mahajan and I am an IT employee with 4+ years of experience in Software testing and staying in Bengaluru. My area of interest is Automation testing. I started from basics and went throw so many selenium tutorials. Thanks to Mukesh Otwani as his tutorials are easy and cover basics to advance. I have habit of exploring concepts by deep diving. I used to make notes. I thought of sharing my knowledge through posts and now I am here. #KeepLearning #ShareLearning

Related

Uncategorized

Post navigation

Previous Post: What will happen if we pass NULL as argument in sendKeys() method Of Selenium WebDriver | Make Selenium Easy
Next Post: TestNG Tutorials 44: Constructor with @Parameter Annotation | Make Selenium Easy

Related Posts

image – Make Selenium Easy Uncategorized
August 25, 2018 – Make Selenium Easy Uncategorized
All about WebDriver: Methods And Its Usages Uncategorized
URL Loading in Selenium Webdriver: All about get() and navigate() | Make Selenium Easy Uncategorized
Accessibility Testing in Slides Uncategorized
Using getText() method in Selenium WebDriver Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark