recording filters not working

18 views
Skip to first unread message

Jackie chen

unread,
Nov 16, 2022, 7:12:28 AM11/16/22
to wiremock-user
hello
I tried to add filters while recording with the following API:
POST /__admin/recordings/start
{
  "targetBaseUrl": "http://localhost:8000",
  "filters" : {
    "urlPathPattern" : "/api/.*",
    "method" : "POST"
  }
}

after setting the filters then get the mapping to check and found out that filtering is not working:
GET /__admin/mappings
{
    "mappings": [
        {
            "id": "1565575e-b3c0-4c3b-8bcd-3779dbb64231",
            "request": {
                "method": "ANY"
            },
            "response": {
                "status": 200,
                "proxyBaseUrl": "http://localhost:8000"
            },
            "uuid": "1565575e-b3c0-4c3b-8bcd-3779dbb64231"
        }
    ],
    "meta": {
        "total": 1
    }
}

then i tried to send GET request, and could get response even if i filter only POST requests.

could you please suggest why filtering in recording feature is not working?
Reply all
Reply to author
Forward
0 new messages