Use the value generated in response to another response
I use Wiremock Standalone.
I have a query to retrieve product information /api/product/{id}
A simplified view of the stub for this query:
{
"request": {
"urlPattern": "/api/product/([0-9]/*)",
"method": "GET"
},
"response": {
"status": 200,
"jsonBody": {
"data": {
"id": "{{request.path.[3]}}",
"name": "product name",
"warehouse_id": "{{randomInt lower=1}}",
...
}
}
}
}
I also have a query to get information about...