- Print
- DarkLight
- PDF
June 12, 2023
Corezoid.com
New features
Variables
The new variables feature has been added. Variables are Stage objects in which you can store data in RAW and JSON formats. In this version, after a variable is created, the data stored in it will not be displayed. We will add the ability to allow variable data viewing in future versions.
Variables enable you to store certificates and use them in API Call nodes by calling a variable by ID or short name.
You can create variables in non-immutable Stages of your projects
Variables can be used in the “Sign the request with the secret key” and “Sign the request by certificate” fields of API Call nodes.
For getting data stored in variables in RAW and JSON formats, you can use the following constructions:
{{env_var[id]}}
{{env_var[@shortname]}}
You can retrieve data stored in JSON format in variables using nested structures. For example, you can use the following structures for fetching data from arrays or objects:
{{env_var[id].key}}
{{env_var[id].key[1].param}}
To create a variable, browse to any non-immutable stage in your project, go to the Variables folder, and click Create.
You can view selected variable info and copy its short name. You can also delete a variable.