API Testing · Junior · Question 25 of 75
Why use environments in Postman?
- 1To switch values like base URL and tokens between dev, staging and prod
- 2To store the history of every response you have ever received
- 3To run requests in different operating systems at the same time
Show the answer
Correct answer: To switch values like base URL and tokens between dev, staging and prod
Explanation
With {{baseUrl}} in requests, switching from staging to dev means choosing another environment, not editing every request.