2.0 KiB
Environments
The Stoplight editor includes an embedded configuration system that can be used to auto-populate environment information and other variables (hostnames, ports, passwords, etc.) utilized by specifications, scenarios, or collections. To display the current editor environment variables, click the icon on the top right of the Stoplight editor as shown in the image above.
For more information on environment variables and how they can be used, please see here.
Private Variables
Private Variables are variables that are only stored locally on your system and are never sent to Stoplight or the rest of your team. Private variables should be reserved for secrets specific to you, such as user-specific passwords, API keys, and other pieces of sensitive data.
Since private variables are only stored on your computer, make sure they are backed up in a secure location
Resolved Variables
Resolved Variables shows a read-only view of the variables that are currently exposed to your editor. They are based on:
- Your current environment
- Your private variables
These variables (excluding your private variables) are stored in the
.stoplight file of your project (under "Config" in the File Explorer).
The Resolved Variables displayed in the editor will change depending on your current environment. To update the default or environment-specific variables stored in Stoplight, click the "Manage Environments" button under the configuration window.
For more information on updating and customizing environment variables, please see here.
Results