Using environments in Postman
Postman environments are a place where you can create and manage variables. You can set up multiple environments for different purposes. Environments are very helpful when you need to share data between requests, and so in this section, I will show you how to use them to manage your variables. You can also manipulate variables in the environment, and so I'll show you how to do that as well so that you can also use Postman environment to help you explore or debug issues. In the first place, let's look at how to manage variables using environments.
Managing environment variables
Creating an environment is easy. Follow these steps to create one:
- Click on the New button and then select the Environment option.
You can give your environment a name; in this case just call it something like
SWAPI Env
. You can then start creating variables in the environment. Let's use this environment to manage theperson_id
variable that you are...