Hello Everyone,
I was having little issue in wiremock to convert url parameter which is coming in string to integer.
Example :
{
"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]}}}}"
}
}
I want to assign last url parameter to id property in body object.
Can anyone please me out here.