Postman API
Postman API
A basic guide
What is Postman?
• Postman is a popular API client tool that is commonly
used for testing and working with RESTful APIs
Request
Collections
Respons
e
Console
Postman Requests – Creation (1/3)
1. Identify the API endpoint: Locate the correct URL for
the specific action you want to perform (GET a list of
users, POST a new record).
in
Can be used
2. Save frequently used API requests for quick access
responses
Filters API
and reuse • Used to identify specific
resources within a collection,
Postma (API Client like individual products by ID
inside
saved
Can be
Tool)
n
Identify specific
Request
resource
Response 1. Identify API endpoint
2. Choose request type
1. Analyze the response
(GET/POST..)
(check response code)
3. Construct the URL
List of response Server 4. Add Query Parameters
codes 5. Set Headers (if required)
Client Errors –
Successful – 2XX 4XX REST APIs 6. Prepare request body (if
• 200 OK • 400 Bad
1. Statelessness applicable)
•7.GET:
Review
Usedand Send data without modifying anything on
• 201 Created Request
• 2. Resource-based to retrieve
• 204 No Content 401
Server Errors – 5XX Unauthorized 3. HTTP methods for CRUD the server.
• POST: Typically used to create new data on the server. Typically
• 403 Forbidden
• 500 Internal Server operations
requires
Error • 404 Not Found 4. Client-server architecture • PUT: Used to completely replace an existing resource on
request body
• 502 Bad Gateway the server.
• 503 Service Unavailable • PATCH: Used to update a specific portion of an existing