From the course: Postman Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Using environment variables - Postman Tutorial
From the course: Postman Essential Training
Using environment variables
- [Instructor] In the previous five movies, we created 11 different saved requests that we can use for testing our API. But if we ever decide we want to change the name we're using to add a contact, we'll have to change it in every request where it's being used. We can save a lot of time by using variables instead of hard-coded values. In this video, we'll learn how to create an environment, which is a group of variables, and add variables to the environment. So we are going to click on the environment's tab in the left section of the window and then we're going to click Create Environment. We're going to give our new environment a name let's call it, contact list. And then we will click return and we can see that our new environment has been saved. Now let's take a look at the variable table. We can see that there is a space for the name of the variable and then an initial value, and then the current value. The initial…
Contents
-
-
-
(Locked)
Creating collections and folders2m 4s
-
(Locked)
The contact list application2m 12s
-
(Locked)
How JSON Web Tokens (JWTs) work3m 34s
-
(Locked)
Creating GET requests5m 24s
-
(Locked)
Creating POST requests4m 4s
-
(Locked)
Creating PUT and DELETE requests4m 31s
-
(Locked)
Creating negative requests: Part 14m 25s
-
(Locked)
Creating negative requests: Part 26m 16s
-
(Locked)
Using environment variables3m 54s
-
(Locked)
Saving response data as a variable6m 37s
-
(Locked)
Challenge: Add variables to a request1m 6s
-
(Locked)
Solution: Add variables to a request2m 17s
-
(Locked)
-
-
-
-