Hi Team I was try the below example with regexExtr...
# help
k
Hi Team I was try the below example with regexExtract with the version 3.5.3 but not getting the expected response with extracted string mock:
Copy code
{
  "priority": 7,
  "request": {
    "method": "GET",
    "urlPathPattern": "/customerBillManagement/v1/appliedCustomerBillingRate",
    "queryParameters": {
      "filter": {
        "matches": "billingAccount.id==([a-zA-Z0-9_]+)"
      }
    }
  },
  "response": {
    "jsonBody": {
      "bill": {
        "@referredType": null,
        "id": "{{regexExtract request.query.filter '(?<=bill.id==)([a-zA-Z0-9_]+)'}}",
        "href": null
      },
      "billingAccount": {
        "id": "{{regexExtract request.query.filter '(?<=billingAccount.id==)([a-zA-Z0-9_]+)'}}",
        "ratingType": null,
        "segment": null,
        "href": null
      }
    }
  }
}
url:
<http://localhost:8080/customerBillManagement/v1/appliedCustomerBillingRate?filter=billingAccount.id%3D%3Dabc_123>
actual output:
Copy code
{
  "billingAccount": {
    "id": "{{regexExtract request.query.filter '(?<=billingAccount.id==)([a-zA-Z0-9_]+)'}}",
    "ratingType": null,
    "segment": null,
    "href": null
  }
}
expected output:
Copy code
{
  "billingAccount": {
    "id": "abc_123",
    "ratingType": null,
    "segment": null,
    "href": null
  }
}
can guys help me in understanding what I'm doing wrong here?