
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
In this lecture, I wanted to give you an overview of the entire course.
Learn Postman fundamentals through hands-on API practice, with assignments and troubleshooting resources, while staying up-to-date with changes and engaging in Q&A and announcements.
Install postman in the browser or as a standalone app on Windows, macOS, or Linux, then create an account and sign in to access workspaces.
Learn how APIs function as interfaces to remote data, enabling programs to exchange information via web APIs. Use Postman to connect, test, and explore interoperability without coding.
Learn to use Postman to query a grocery store API, read documentation, and verify the API status with the status endpoint, ensuring a successful first request and 200 okay response.
Troubleshoot common Postman errors by verifying the request address and using the console for details. Learn to handle network restrictions with VPNs or proxies and consider Postman on the web.
Learn how to use postman in your browser, switch between browser, cloud, and desktop agents, and troubleshoot by restarting the browser or ensuring the desktop agent runs.
Explore how a client and server exchange HTTP messages via requests and responses, using status codes, headers, and bodies, with secure HTTPS in practice.
Postman guides you from manual API testing to automatic testing by running a defined collection of requests, with monitors, Newman CI integration, HTML documentation, collaboration, and mock servers.
Learn to build and test simple APIs with Get, Post, Put, Patch, and Delete requests in Postman while grasping JSON basics.
Postman collections allow you to organize and group your API requests in a way that makes them easy to find, use, and share with others.
A Postman collection is a group of requests. Each request in a collection has its own set of properties, such as the request method, URL, and headers. You can also add documentation and test scripts to each request, which can be useful for testing and debugging your API.
Explore how to store configuration in collection variables, define a base URL, and use collection scope so requests automatically use variables and avoid manual edits.
Learn how to modify a Postman collection variable, update the base URL and password, manage initial and shared values, and apply changes across multiple requests.
Explore the grocery store API with Postman by fetching all products via the /products endpoint and examining the JSON response to understand endpoints and resources.
Explore how Postman visualizes responses with pretty, raw, and preview modes to read JSON with colored syntax and collapsible sections, and see HTML previews.
Learn to use query parameters in Postman to filter products by category, with dairy and milk examples, and interpret 200 ok and 400 bad request responses, per API documentation.
Understand common API parameter misconceptions and why only documented query parameters such as category, results, and available work; unsupported ones like name are ignored by the endpoint.
Study the API documentation and add the results parameter to your request, test different values, observe API behavior, and prepare for a QA-focused quiz.
Explore how the results query parameter controls api output, enforcing an integer 1–20 with a default of 20 and how category filters and edge cases affect results.
Enable shortcuts in Postman via settings, shortcuts tab, and learn basics like opening a new tab and saving a request with Mac Command + S or Windows Ctrl + S.
Learn to fetch a single product using path variables in Postman, differentiate path variables from query parameters, and validate ids to avoid 404 not found.
Troubleshoot path variables in Postman by replacing placeholders with a valid numeric productId, inspect the URL with the Postman console, and prevent 400 bad request errors.
Distinguish query parameters from path variables in api requests and learn to identify them in urls, using product-id as a path variable and product-label as a query parameter.
Explore the business processes and rules behind an API, using a grocery store example to show product search, cart creation, stock checks, order placement, and authentication requirements.
Learn to create a new cart with a post request in Postman, including authorization and the required cart ID, and understand how post differs from get.
Use the Postman API to verify that your created cart is empty, confirming no items or products, and study the API documentation before the step-by-step quiz.
Analyze cart status by using get cart and get cart items endpoints in Postman, set cart id path variable, and verify an empty cart with an empty items list.
Learn how to construct and send JSON payloads for API calls, including post requests to add items to a cart, and understand valid JSON structure with keys, values, and arrays.
Learn to send a post request with a json body in Postman, include path and body parameters, and interpret 400 and 201 responses for a cart item.
Learn practical Postman troubleshooting for post requests: recreate from API docs, fix base URL, supply cart and product IDs, and send JSON with the correct method.
Understand the difference between get and post, as get retrieves data with no side effects while post creates data and may duplicate resources, guided by api documentation.
Register an API client to obtain an access token for requests in Postman. Configure the authorization header with the Bearer token and store it as a collection variable for reuse.
Identify common Postman errors by validating endpoints, methods, and JSON payloads, then use status codes and API documentation to guide fixes.
Enhance your Postman fundamentals by practicing placing an order using the API, studying the API documentation, and following a quiz-guided assignment.
Learn to build a create order request in Postman by supplying required body parameters cartId and customerName, with authorization, and troubleshoot 400 errors to achieve 201 Created and an orderId.
Leverage Postman's random full name variable to auto generate unique customer names in the request body, enabling testing with different data sets to uncover API issues.
Explore how Postman handles http headers in requests and responses, including visible and auto generated headers, content-type as application/json, and overriding authorization and other headers.
Learn why HTTP headers matter for clear client-server communication, when to use authorization and content-type headers, and how Postman’s defaults help you avoid unnecessary header work.
Understand how headers, query parameters, and path variables form the resource address in Postman. See why these concepts differ and how Postman uses key–value panels to manage them.
Learn to share and import postman collections using API keys, generate new access tokens, and import via a link or file while preserving originals and exporting with version 2.1.
Learn to update a specific field of an existing order using the patch method on orders/{order_id}, with authorization, and verify changes by retrieving the updated orders.
Learn to use the patch method to add a comment to an order by following the API documentation and performing a quick one-minute update, such as pickup at 2:00 p.m.
Learn how to use patch requests in Postman to update only the comment field of an order, leaving the customer name unchanged and confirming with a 204 response.
Use Postman variables to avoid duplication by defining a cart id in the collection and referencing it across get cart, get cart items, and add item to cart.
Learn how to modify a cart item using a patch request by updating the quantity with cart ID and item ID, handling 204 no content responses and 400 bad request.
Shows using a put request to replace a cart item by changing the productId (and optionally quantity), contrast with patch for partial updates, and verify via a cart fetch.
Explore the delete request method by removing a cart item using the same endpoint, confirming with a 204 no content response and rechecking cart items.
Practice deleting information and resources by removing an existing order in Postman as part of the assignment, mastering delete operations.
Learn how to delete an order using Postman, verify the deletion with a 204 response and a subsequent 404 on a get single order, and validate API requests.
Study the API documentation to determine which HTTP method to use, and learn how get fetches data while post, put, patch, and delete modify or remove information.
Explore the head request method, a lightweight HTTP verb that returns a 200 status without a body, to verify API availability and endpoint validity.
In this section, we are going to start writing basic tests and assertions in Postman using JavaScript and the Postman pm object.
Learn to verify status codes for every API endpoint using Postman, perform functional testing, and document tests to ensure 200 OK and handle 404 changes.
Go through all the requests in the collection and write a status code test for each. Ensure the tests fail when needed, guided by the step-by-step quiz.
Implement and refine status code tests across cart and order endpoints in Postman, validating 200, 201, 204, 404, and 409 responses while updating tests and collection variables.
Test the response body of an API by asserting fields like name, price, and stock using the Postman pm.test and pm.expect, ensuring tests fail when data changes.
Learn how to make Postman tests robust by asserting data types instead of hard-coded values. Validate the entire response as an object and ensure a 200 status.
Refactor tests by moving the response to the global scope, initialize it from pm.response.json, reduce repetition, and fix console.log scope issues for reliable status checks.
Explore happy path and negative testing in Postman by organizing requests in folders, validating 401 unauthorized errors, missing authorization headers, and meaningful API error messages like invalid token.
Learn to organize requests with authentication tests in postman, reuse tests at request, folder, and collection levels to reduce duplication and improve maintainability.
Master how to reduce duplication in Postman by organizing requests and tests, adding use-case hints like missing header or invalid token, guided by a step-by-step assignment.
Reduce duplication in tests by organizing requests into folders such as missing header and invalid token, move tests to the folder level, and rename requests to simplify maintenance.
Practice boundary testing by sending invalid inputs to the get all products endpoint, verify 400 bad request responses and error messages, and use contains assertions for future changes.
Learn boundary testing by evaluating invalid values for the results query parameter, guided step by step through this assignment.
Master boundary testing in postman fundamentals by validating get all products with results limits, exact 400 errors, and precise error messages for out-of-range inputs.
Document requests and folders in a Postman collection by adding request descriptions and folder or collection level documentation to explain why each item exists and what is tested.
Automate API testing by learning to set and read Postman variables in scripts, eliminating copy-paste and manual data changes for streamlined automation.
Learn to set and update Postman collection variables from scripts using the set method (pm.set), create a first name variable like Jamie, and reference existing variables for dynamic data.
Master request chaining in Postman by saving a product ID from a response as a collection variable, and reuse it to fetch a product and add it to the cart.
Apply the fail-fast principle to troubleshoot setting collection variables in Postman scripts. Validate responses with tests that ensure an array, first element exists, a numeric id, and inStock is true.
Set the cartId in a Postman collection variable by scripting against the response body, then reuse that variable in all subsequent requests; the quiz guides you step by step.
Extract the cartId from the create cart response, set it as a collection variable in Postman, and verify its validity with tests.
Store all dynamic data from the API into Postman variables by scripting responses to extract item IDs and order IDs, and reuse them across requests with tests to ensure robustness.
Learn to manage dynamic data in Postman by creating a cart, adding items, and storing lastAddedItemID and orderId as collection variables for automated tests.
Discover how to retrieve Postman collection variables in scripts with pm.collectionVariables.get, validate them in tests, and understand the get versus set distinction using a productId example.
Apply Postman variables in scripts to validate a get single order request returning 404 after deletion, and write a test that verifies the response body contains the order ID.
Create a Postman test script that parses the response, checks for an error property, and verifies the error includes the stored order id from collection variables.
Explore JavaScript data type comparisons using the greater-than operator, strict equality (===), and the pitfalls of loose equality (==) and accidental assignments, with console.log demonstrations.
learn how to write for loops in JavaScript, using initialization, condition, and afterthought, with i and console.log examples, braces and scope, and a warning about endless loops.
Learn to iterate arrays with a for loop, starting at index zero, using length and i++ to access each item and log it, handling any array size.
Master JavaScript conditionals using if statements to show messages based on age. Build readable code with blocks, else branches, and correct semicolon usage.
Iterate the get all orders response array with a for loop, parse the JSON, and compare each order id to the collection variable orderId to verify the last submitted order.
Learn how to write assertions against an array in Postman by using a pm.test, looping the response, and a boolean flag like isOrderIdInResponse to assert the id is found.
Master iterating arrays with forEach, using a callback (item, index, array) via anonymous or arrow functions, and replacing for loops when processing orders.
Use the array find method with a callback to locate items, from numbers like five to objects like Jamie, and safely retrieve data such as emails or handle not-found cases.
Practice replacing the forEach loop with the array find method in the get all orders request, reinforcing hands-on learning in Postman fundamentals.
learn to replace forEach with the find method on a Postman test response, matching order.id to a collection variable and asserting the result is an object.
Learn to preserve data types in Postman by setting collection variables from scripts, using typeof to verify types, and avoiding manual edits that convert numbers to strings.
Use a pre-request script to generate a random quantity and store it in a postman variable, then apply it to the request or test body.
Use Postman variables in the request builder, including url, query params, path variables, headers, and body, and in scripts.
Learn to remove collection variables in Postman using set, unset, and clear, noting that clear deletes all variables in the scope. Start in a new collection to avoid data loss.
Learn Postman with a Postman Supernova.
RESTful APIs (or simply REST API) are everywhere nowadays, but at the same time, they can be tricky to get started with: different HTTP methods (GET, POST, PUT, PATCH, DELETE), parameters, headers, JSON bodies, status codes and authentication.
This is where the Postman App comes in! Postman allows you very quickly to create a request with the required HTTP method and parameters, submit the request and easily inspect the results.
I have created this course for testing engineers as well as for software developers or other technical positions. Postman can help you during the development of your API, as well as after the API is completed, by running tests that make sure your API is still working as intended.
The course is split into four parts. You start by setting up Postman and sending your first requests while learning how APIs and HTTP work. Next, you build REST API requests step by step, from simple GET requests to POST, PUT, PATCH and DELETE. Then you write your first API tests, and finally you use Postman variables and JavaScript in scripts to pass data between requests and build realistic test scenarios.
Along the way, you practice with hands-on assignments and quizzes, and dedicated troubleshooting lectures show you how to fix the most common Postman errors.
So let’s look at what you are going to learn:
HTTP request methods (GET, POST, PUT, PATCH, DELETE)
Query parameters, path variables, headers and the JSON format
Start with simple requests and advance toward more complex scenarios
Learn to deal with authentication/authorization using API Keys
Write API tests for status codes, response bodies, data types and error handling
Use Postman variables and request chaining to pass data between requests
JavaScript basics for tests: data types, loops, conditionals and arrays
So after this course, you will know how to use Postman as a pro.
Excited to learn Postman? Join the course today.
Legal Disclaimer
This course is an independent educational resource and is not endorsed by, affiliated with, or associated with Postman, Inc., or any of its products. Postman is a trademark of Postman, Inc. All product names, logos, and brands mentioned in this course are the property of their respective owners.
This course contains promotional materials.