Use System Enviornment Variables in HTTP Requests
Is there a way to use a System Environment Variable in an HTTP request, rather than having to pace it in an *.env.json file? For example, I'd like to do something like this:
GET http://httpbin.org/foo
Authorization: {{SYS.ENV.accessToken}}
to access my "accessToken" system environment variable. Is there a way to do this?
请先登录再写评论。
According to the official documentation, there are only three types of variables available:
The variables' values can be any of the following:
Provided explicitly per environment by means of the environment variables
Generated dynamically by means of the
$uuid
,$timestamp
, and$randomInt
predefined dynamic variablesDefined programmatically in response handler scripts by means of the
client.global.set
method.Unfortunately, there is no way to use system-wide env variables. I have quickly checked YouTrack for any similar feature requests but was not able to find any, so please feel free to submit your own:
https://youtrack.jetbrains.com/newIssue
Thanks. I've created a feature request: https://youtrack.jetbrains.com/issue/IDEA-244790