According to this documentation: https://wiremock.org/docs/request-matching/#matching-headerquery-parameter-containing-multiple-values the following mapping definition:
{
"mappings" : [ {
"id" : "8de914b3-3f46-4860-bcbb-d9671c1d39ac",
"request" : {
"url" : "/someEndpoint",
"method" : "GET",
"queryParameters" : {
"id" : {
"hasExactly" : [ {
"equalTo" : "16930666"
}, {
"equalTo" : "49288354"
}, {
"equalTo" : "62100189"
}, {
"equalTo" : "53250905"
} ]
}
}
},
"response" : {
"status" : 200,
"body" : "<?xml version="1.0" ?>nn",
"headers" : {
"Content-Type" : "text/xml; charset=UTF-8"
}
},
"uuid" : "8de914b3-3f46-4860-bcbb-d9671c1d39ac"
} ],
"meta" : {
"total" : 1
}
}
should work – although there is no example how the query parameters should be passed, I’d expect the following to match:
curl "http://localhost:8090/someEndpoint?id=16930666,49288354,62100189,53250905"
curl "http://localhost:8090/someEndpoint?id=16930666&id=49288354&id=62100189&id=53250905"
What am I doing wrong?