22- Using POSTMAN API to Get List of REST API

 

Steps taken to Get List of Employees on POSTMAN

1-    Open POSTMAN API.

2-    Choose the method you want to execute(GET).

3-   Write your URL Path" http://localhost:8080/api/employees"

4-    Choose the format which you are submitting data in my case is body-> raw -> json

5-   Submit  and wait for Response..


Getting List of Employees

Image 1


Response Generated by Postman API in JSON format is:

[
    {
        "id": 1,
        "firstName": "ZeeK",
        "lastName": "Khan",
        "email": "zee@gmail.com"
    },
    {
        "id": 2,
        "firstName": "Tom",
        "lastName": "Jerry",
        "email": "Tommy@gmail.com"
    },
    {
        "id": 3,
        "firstName": "Harry",
        "lastName": "Potter",
        "email": "harry@gmail.com"
    },
{
        "id": 4,
        "firstName": "Albus",
        "lastName": "Dumbledore",
        "email": "albus@gmail.com"
    },
    {
        "id": 5,
        "firstName": "Severus",
        "lastName": "Snape",
        "email": "hero@gmail.com"
    }
]


Comments

Popular posts from this blog

INDEX OF Zeek Spring Boot