-
Notifications
You must be signed in to change notification settings - Fork 1
Parameterizing HTTP Responses
Erik edited this page Feb 5, 2023
·
1 revision
Responses can be parameterized by embedding a python expression within the json/text response. A python expression can use the variables listed in the Variables section (right-side). For example, in the screenshot below, the value of the field "code" in the HTTP response will be the result of the expression pythonId + 42
You can add as many <<expressions>>
as you want, however it is not allowed to have an <<expression>>
within another expression
Note: anything between "double angle brackets" << >> is executed as a python expression. The result of the expression will replace everything within the << >> brackets (including the brackets themselves)