
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 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 are getting more complex to get started with: different HTTP methods (GET, POST, PUT, PATCH, DELETE), headers, cookies, dealing with file uploads or authentication with API keys, tokens, OAuth and so much more.
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.
In the first part of the course, we will start exploring the features of Postman and continue by writing API tests with the intention of integrating them into a CI server where the tests will run on a current basis.
But this is not the normal course you take part in. Because your needs may be different and because I hate leaving you wondering what to do next, the second part of the course will include user questions and answers to problems that were not yet covered in the course or that are more specific and may not interest everybody.
So let’s look at what you are going to learn:
HTTP request methods (GET, POST, PUT, PATCH, DELETE)
JSON format
Start with simple requests and advance toward more complex scenarios
Learn to deal with authentication/authorization using API Keys
Start writing API tests
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.