You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Easily create/update/delete environments and environment variables in setting file
43
43
- File variables can reference both custom and system variables
@@ -625,7 +625,7 @@ For example: Define a shell environment variable in `.bashrc` or similar on wind
625
625
626
626
`%`: Optional. If specified, treats envVarName as an extension setting environment variable, and uses the value of that for the lookup.
627
627
628
-
*`{{$dotenv [%]variableName}}`: Returns the environment value stored in the [`.env`](https://github.com/motdotla/dotenv)file which exists in the same directory of your `.http` file.
628
+
*`{{$dotenv [%]variableName [filename]}}`: Returns the environment value stored in the file starts with [`.env`](https://github.com/motdotla/dotenv) which exists in the same (or direct parent) directory of your `.http` file. If no file specified, default filename is `.env`.
629
629
*`{{$randomInt min max}}`: Returns a random integer between min (included) and max (excluded)
630
630
*`{{$timestamp [offset option]}}`: Add UTC timestamp of now. You can even specify any date time based on current time in the format `{{$timestamp number option}}`, e.g., to represent 3 hours ago, simply `{{$timestamp -3 h}}`; to represent the day after tomorrow, simply `{{$timestamp 2 d}}`.
631
631
*`{{$datetime rfc1123|iso8601|"custom format"|'custom format' [offset option]}}`: Add a datetime string in either _ISO8601_, _RFC1123_ or a custom display format. You can even specify a date time relative to the current date similar to `timestamp` like: `{{$datetime iso8601 1 y}}` to represent a year later in _ISO8601_ format. If specifying a custom format, wrap it in single or double quotes like: `{{$datetime "DD-MM-YYYY" 1 y}}`. The date is formatted using Day.js, read [here](https://day.js.org/docs/en/get-set/get#list-of-all-available-units) for information on format strings.
ResponseBodyNotExist="Response body of given request doesn't exist",
28
28
IncorrectDateTimeVariableFormat='Datetime system variable should follow format "{{$datetime rfc1123|iso8601 [integer y|M|w|d|h|m|s|ms]}}"',
29
29
IncorrectLocalDateTimeVariableFormat='Local datetime system variable should follow format "{{$localDatetime rfc1123|iso8601 [integer y|M|w|d|h|m|s|ms]}}"',
30
-
DotenvFileNotFound='.env file is not found in the directory where current .http file exists',
30
+
DotenvFileNotFound='.env file or specified file which should start with ".env" is not found in the directory where current .http file exists',
31
31
DotenvVariableNotFound='Given variable name is not found in .env file',
32
32
IncorrectHeaderName='No value is resolved for given header name',
33
33
IncorrectJSONPath='No value is resolved for given JSONPath',
34
34
IncorrectRandomIntegerVariableFormat='RandomInt system variable should follow format "{{$randomInt minInteger maxInteger}}"',
35
35
IncorrectProcessEnvVariableFormat='ProcessEnv system variable should follow format "{{$processEnv envVarName}}"',
36
36
IncorrectTimestampVariableFormat='Timestamp system variable should follow format "{{$timestamp [integer y|M|w|d|h|m|s|ms]}}"',
37
-
IncorrectDotenvVariableFormat='Dotenv variable should follow format "{{$dotenv variableName}}"',
37
+
IncorrectDotenvVariableFormat='Dotenv variable should follow format "{{$dotenv variableName [filename]}}"',
38
38
IncorrectXPath='No value is resolved for given XPath',
39
39
UnsupportedBodyContentType='Only JSON and XML response/request body is supported to query the result',
0 commit comments