# Activity 24: POSTMAN

## FIRST WHAT IS POSTAMAN?

Postman is an [API platform](https://www.postman.com/api-platform/) for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster. Easily store, catalog, and collaborate around all your API artifacts on one central platform. The Postman platform includes a comprehensive set of tools that help accelerate the API lifecycle—from design, testing, documentation, and mocking to the sharing and discoverability of your APIs.

## Write a step-by-step guide on how to install Postman and how to use it. (PUT, GET, DELETE, POST)

# Step 01:

Browse and search for Postman and Download it

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728741256431/dfbc2bf0-eb10-4a5e-bdbc-99d5cb7b2d22.png align="center")

# Step 02:

After download it now you can Install double click the **Postman-win64-S**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728741299118/06ff153d-a3bf-4ad7-a6b7-469158aee0a2.png align="center")

# Step 03:

by installing it will directly to the overview of POSTMAN and you can Sign in or Create Account clicking the Sign in and Creating Account Button so in my case I choose Create Account using my Google Account.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728741434991/eacdd759-32d9-4410-a694-01b8a3f588ac.png align="center")

and after that I it will give you choices to directly create account then that is you are now have a Account in POSTMAN

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728741473884/2f07dddc-0be1-422e-b290-2eeda713a17a.png align="center")

# **Using Postman for Requests**

# Step 04:

to start in postman for request firs you need to click new

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728742142191/131c5ebf-daab-4b5d-8eed-f4fd6ad1b1fa.png align="center")

# Step 05:

then it will pop the list of this and i choose the HTTP

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728742295319/6196d9ef-8e76-408f-bfe0-6bd1745839b1.png align="center")

and it will be ready to request

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728743106870/1062dbe0-ce20-4d5b-9839-6dd3f6f9654e.png align="center")

# GET Request:

so let start GET request

first Select GET from the dropdown menu

then enter this url: `https://jsonplaceholder.typicode.com/posts`

then click Send in the right side and see the response

after sending you will see in the bottom the list of JSON Data

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728743332566/d9fd9056-b7e6-4f01-9621-ba802ebd2f18.png align="center")

# POST Request:

next for POST request

Just Select the POST from the dropdown menu

then enter the url: `https://jsonplaceholder.typicode.com/posts`

then Go to the **Body** tab, select **raw**, and choose **JSON**.

then click Send the JSON Data and see the response

```json
{
  "id": 1,
  "title": "updated title",
  "body": "updated body",
  "userId": 1
}
```

so, after you see the result like the `“id”: 101` indicating the successful creation of a new post.

```json
{
    "id": 101
}
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728743342062/2ab0ed19-2efc-41b3-b612-673ae51eb63f.png align="center")

# PUT Request:

next for PUT request

Just Select the PUT from the dropdown menu

then enter the url: `https://jsonplaceholder.typicode.com/posts/1`

Then In the **Body** tab, select **raw** and enter updated JSON data:

then click send to see the response

```json
{
  "id": 1,
  "title": "updated title",
  "body": "updated body",
  "userId": 1
}
```

so the response is

```json
{
"id": 1
}
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728743348423/46cada17-cd93-4ff0-ab6b-372e03218e94.png align="center")

# DELETE Request:

next for the DELETE request

Just Select the DELETE from the dropdown menu

then enter the url: `https://jsonplaceholder.typicode.com/posts/1`

then click the send to confirm delete!

```json
{}
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728743356159/bdc59204-9ca3-4595-84ab-2c262baaab81.png align="center")

Reference: [What is Postman? Postman API Platform](https://www.postman.com/product/what-is-postman/)
