I am trying to create dynamic mocks using WireMock. I have a situation where if I specify URL like
http://localhost:8989/api/account/121
then I should receive response like this:
"cycleSpecification": {
"id": "121"
}
}
In brief, the path param is returned in the response body, but I am not sure how should I capture 121 and return this in the response using wiremock.
and for this kind of request
/myManagement/v1/source?filters=myParty.id==539&&myParty.role==individual
OR
/myManagement/v1/source?filters=myParty.id%3D%3D539%26myParty.role%3D%individual
what can I used so response will filter out the id and role and put in the response.
I am using standalone wiremock jar 2.27.2 to create wiremock-server.