Skip to content

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

image

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)