I'm trying to virtualize a REST service. In my request, one of the elements is repetitive, i.e. it can occur one or more times. The same element is also repetitive in the response too.
So, if the request has three nodes of that element, the response also has the same three nodes of that element with values also same in it.
How do i virtualize this dynamic behavior. I don't want to record the VSI with some static request-responses which has two or three nodes, but i want to be dynamic as mentioned above.
I know that I have to write java code and check the incoming request and prepare the outgoing response accordingly. But don't know how to implement it.