Learn How to Use Postman for API Testing: A Step-by-Step Manual

Here's your complete beginner-friendly step-by-step guide to using Postman for the Express.js project we built in Day 11 (Student API).
π― Goal
You will learn how to use Postman to test these API routes:
Method | Route | Description |
GET | /students | Get all students |
POST | /students | Add a student |
PUT | /students/:id | Update a student |
DELETE | /students/:id | Delete a student |
π§° What You Need
β
Your Express server running on http://localhost:5000
β
Postman installed
π Download Postman and install it (if not already)
π§ͺ Step-by-Step: Testing with Postman
β Step 1: Open Postman
After opening Postman, click on "New" β "HTTP Request"
A tab will open to create your first API request
β Step 2: Test GET Request
Goal: Fetch all students from your API
Select method:
GET
URL:
http://localhost:5000/students
Click
Send
π₯ You will get a response like:
[
{ "id": 1, "name": "Payal" },
{ "id": 2, "name": "Amit" }
]
β Step 3: Test POST Request
Goal: Add a new student
Select method:
POST
URL:
http://localhost:5000/students
Click on
Body
tabSelect
raw
From dropdown on right, choose
JSON
Paste this JSON:
{
"name": "Ravi"
}
- Click
Send
π€ Youβll get a response like:
{ "id": 3, "name": "Ravi" }
β Also, now GET request will include Ravi!
β Step 4: Test PUT Request (Update Student)
Goal: Update a studentβs name
Select method:
PUT
URL (use a real ID, example 2):
http://localhost:5000/students/2
Go to
Body
βraw
βJSON
Paste:
{
"name": "Updated Amit"
}
- Click
Send
π€ Response:
{ "id": 2, "name": "Updated Amit" }
β Step 5: Test DELETE Request
Goal: Delete a student
Select method:
DELETE
URL (use the ID you want to delete, like 3):
http://localhost:5000/students/3
Click
Send
π€ Response:
{ "message": "Student deleted successfully" }
π Tips for Beginners
Always use
GET
from the browser, but forPOST
,PUT
, andDELETE
, Postman is the best toolIf you get
Cannot GET /students
, check if your server is runningRestart server if you change
index.js
If Postman hangs, check port, check firewall, or restart app
π‘ Bonus: Save Requests as a Collection
Click
Save
near Send buttonCreate a Collection called
Student API
Save all requests (GET, POST, PUT, DELETE) inside it
β Now you can access them anytime without rewriting.
β Summary
What You Did | Method | URL Example |
Get all | GET | http://localhost:5000/students |
Add new | POST | http://localhost:5000/students |
Update | PUT | http://localhost:5000/students/2 |
Delete | DELETE | http://localhost:5000/students/3 |
π Stay Connected
If you found this article helpful and want to receive more such beginner-friendly and industry-relevant Node JS notes, tutorials, and project ideas β π© Subscribe to our newsletter by entering your email below.
And if you're someone who wants to prepare for tech interviews while having a little fun and entertainment, π₯ Donβt forget to subscribe to my YouTube channel β Knowledge Factory 22 β for regular content on tech concepts, career tips, and coding insights!
Stay curious. Keep building. π
Subscribe to my newsletter
Read articles from Payal Porwal directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Payal Porwal
Payal Porwal
Hi there, tech enthusiasts! I'm a passionate Software Developer driven by a love for continuous learning and innovation. I thrive on exploring new tools and technologies, pushing boundaries, and finding creative solutions to complex problems. What You'll Find Here On my Hashnode blog, I share: π In-depth explorations of emerging technologies π‘ Practical tutorials and how-to guides π§Insights on software development best practices πReviews of the latest tools and frameworks π‘ Personal experiences from real-world projects. Join me as we bridge imagination and implementation in the tech world. Whether you're a seasoned pro or just starting out, there's always something new to discover! Letβs connect and grow together! π