Is there new syntax for using environment variable

2019-08-26 06:32发布

问题:

I have used the syntax in the attached screenshot since I started using Postman, but one of the recent updates seems to have either bugged it out or there is new syntax which is not documented on their website. The variable seems to be completely ignored in the request.

Reference question: Use environment's variables in url parameters with Postman

回答1:

In the newer versions of the Postman App, the concept of sessions have been introduced using which you can have session variables (current as shown on variable hover) which allow you to work with variables locally without syncing them with your team.

So in your case, you simply need to reset your current values with your initial values in the Manage Environments modal. Screenshot attached for reference.

Reset variables to replace current values with initial values

Additionally, you can configure this behavior in the settings to decide whether or not you would like to persist your current values to the initial values automatically. Screenshot attached for reference.

Automatically persist variable values toggle

Head over to the community forum in case you have additional queries regarding this.



标签: postman