Hi,
I am looking for a way to mock a post request with body like below
[
{"name": "Foo"},
{"name":"Bar"}
]
And I need to send a response back with another json array with some data for the requested "names"
My response should be like
[
{"name": "Foo", "Address": "123 ABC Parkway"},
{"name":"Bar", "Address": "456 DEF Parkway"}
]
You get the idea, right? Also, the no. of elements in the request's body json array can grow and correspondingly, the json elements in the response array should dynamically be generated matching the no. of elements in the request array.
Any idea on how this can be achieved?
Regards