File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
docs/pages/keyconcepts/templating Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,11 @@ Additional data can come from helper methods. These are the ones Hoverfly curren
82
82
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
83
83
| A random UUID | ``{{ randomUuid }} `` | 7b791f3d-d7f4-4635-8ea1-99568d821562 |
84
84
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
85
- | Replace all occurrences of the old value with the new | ``{{ replace Request.Body 'be' 'mock' }} `` | |
85
+ | Replace all occurrences of the old value with the new | ``{{ replace (Request.Body 'jsonpath' '$.text') `` | |
86
+ | | ``'be' 'mock' }} `` | |
87
+ | value in the target string | (where Request.Body has the value of | |
86
88
| | | |
87
- | value in the target string | (where Request.Body has the value of " to be or not to be" | to mock or not to mock |
89
+ | | {"text":" to be or not to be"} | to mock or not to mock |
88
90
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
89
91
| Generate random data using go-fakeit | ``{{ faker 'Name' }} `` | John Smith |
90
92
+-----------------------------------------------------------+-----------------------------------------------------------+-----------------------------------------+
You can’t perform that action at this time.
0 commit comments