<How to create dynamic response with json in wirem...
# stackoverflow
r
How to create dynamic response with json in wiremock { "result": { {{#each (jsonPath request.body '$.ids') as |id|}}"{{id}}": { "favorite_0": 1, "search_0": 1, "visit_0": 1, "order_0": 1, "basket_0": 1, "jfyimpression_0": 1 }{{#unless @last}} ,{{/unless}}{{/each}} }, "messages": [ { "type": "success", "position": "top", "content": "Request processed successfully.", "title": "All is well!", "code": "SUCCESS_1001" } ] } I created this response for...