Skip to content

Commit

Permalink
update documentation for example-level variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Nov 10, 2024
1 parent 3b6dc06 commit 71da36c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ express your desired priorities in the issue tracker.
- Binary response view
- Binary request editor
- Overriding default headers
- Example-level variables
- Checking for version updates
- Establish release builds (minified and without debug logs and symbols)

Expand Down
Binary file added doc/_include/variables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions doc/features/request-examples-and-payload-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ Body with content type "None" or "Binary File" cannot be inherited.
Body with remaining content types can be changed to inherit from the Base Example, by unselecting the
"Is Override Base?" checkbox.

### Variables

Variables can be defined in Request Example level to override [Environment Variables](environments). Variables defined in the Base Example are inherited and can be overridden.

Similar to Environment Variables, variables can be used anywhere in the request with the syntax `${{variable-name}}`.

Overridden variables are displayed in a dimmed color.

![Example-level Variables](../variables.png)

### Other Stuffs

By default, following items are inherited from the "Base Example" of the same Request.
Expand Down

0 comments on commit 71da36c

Please sign in to comment.