Abhishek R Prasad
04/30/2025, 6:10 AMcurl --request POST \ --url <http://localhost:8080/__admin/mappings> \ --header 'content-type: application/json' \ --data '{ "priority": 15, "request": { "method": "GET", "urlPath": "/reports/awb/tracking", "queryParameters": { "clientId": { "equalTo": "323245" }, "language": { "equalTo": "en" }, "awb[]": { "matches": ".+" } } }, "response": { "status": 200, "headers": { "Content-Type": "application/json" }, "jsonBody": { "status": "success", "data": [ { "awbNumber": "{{request.query.awb[0]}}", "content": "test", "confirmation": { "name": "test", "date": "2023-03-06 13:58" }, "returnAwbNumber": null, "events": [ { "id": "H4", "name": " Shipment sorted on the belt", "location": "Bucharest", "date": "2023-03-01 04:46:46" }, { "id": "H10", "name": " Shipment in transit towards the destination warehouse ", "location": "Bucharest", "date": "2023-03-01 05:19:10" } ] } ] }, "transformers": [ "response-template" ] }, "persistent": true }'
I have deployed Wiremock using Flux (kubernetes) and I am using the below arguments :
args:
- "--no-request-journal"
- "--disable-request-logging"
- "--max-template-cache-entries=50"
- "--local-response-templating"
- "--root-dir"
- "/mnt/azure"
not sure why "--local-response-templating" does not work in this case.
Could you please let me know how I can fix this 🙂 .Lee Turner
04/30/2025, 6:53 PMLee Turner
04/30/2025, 8:23 PM{{request.query.awb.[0]}}
?