What request are you sending to the `/api/search` ...
# help
l
What request are you sending to the
/api/search
stub ?
k
the request is:
/api/search?query=source%3D23456789987654322345678998765432%5Etarget%3D98765432234567899876543223456789%5Estatus%3D1
r
the issue is the use of the jsonBody field. response templating and the jsonBody field don't play nice when escaping characters due to how the json is serialised during templating. replacing the entire
"jsonBody"
field with a
"body"
field should fix it.
Copy code
"body" : "{\"result\": [{\"id\": \"{{ regexExtract request.query.query '=(.*?)\\^' 'ids' }}{{ids.0}}-{{ids.1}}\"}]}"
k
Thanks @Rafe Arnold that worked 👍