My question:
Is there a way in fake server “Example” to use some part of the request body in the response ?
For example if I receive:
{
"type": "sometype",
"object": {...}
}
I would like the example to respond :
{
"object": {...}
}
It would be even better if I could modify some part of object, like “object.status=‘processed’” before sending the response.
I don’t see any pre-script for examples (I use “x-mock-response-name” header to identify the response I want)