I'm trying to mock different responses in mockoon based on value1 in the following body request:
{
"foo":"bar",
"records" : [{
"key1" : "value1",
"key2" : "value2"
}
]
}
The logical approach would have been to point as records[0].key1 to compare the value, but that does not seem to work.
A little reading goes a long way.
The answer for my case is as follows:
This is from the Adding response rules from the Mockoon documentation, https://mockoon.com/docs/latest/route-responses/dynamic-rules/: