![]() If two variables with the same name are defined in multiple environments, the environment with higher priority will win. These will also override any variables defined within a sub environment or base environment. Any variables defined at the folder-level will be available to all requests within that folder. You can access a folder’s environment from the folder dropdown in the sidebar. ![]() Folder Environmentsįolder environments are a rarely used feature, but can be invaluable for specific use cases. Note: Sub environments can be created as Private, meaning they will never be synced or exported. Once sub environments exist, they can be activated via the environment dropdown. They are also sometimes used to defining variables for different users of a single app. Sub environments are most commonly used for store variables related to production, staging, or development services. A common use for the base environment is to store default variables that will not change across production, staging, or development services such as resource names, languages, sample data, etc. Variables in the base environment are available throughout the entire workspace, even if other environments are defined. Base EnvironmentĪ base environment is assigned to every workspace within Insomnia and can be accessed via the environment manager. Note: Hovering over the placeholder with your mouse will show the current value. Clicking on the button will show a modal dialog for further editing. Once a variable is selected, it will be displayed with a colored placeholder. Allow the autocomplete to show automatically as you typeĪfter you have set environment variables, you can access the variables via autocomplete dropdown menu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |