Kaushal Sharma
02/24/2025, 8:23 AMLee Turner
02/24/2025, 9:36 AM}
characters together. This seems to work for me by just adding a bit of space:
{
"request": {
"method": "GET",
"urlPattern": "/api/v4/Automation/Get/test/([0-9]+)"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"transformers": [
"response-template"
],
"body": "{\"Status\":200,\"Message\":null,\"data\":{\"id\": {{request.path.[5]}} }}"
}
}
When I send this request - curl localhost:8080/api/v4/Automation/Get/test/1234
I get this response:
{
"Status": 200,
"Message": null,
"data": {
"id": 1234
}
}