https://linen.dev logo
#general
Title
# general
a

Adam Cox

02/01/2024, 2:41 PM
Hello, I am looking for a little bit of help with request matching. We are trying to set a mock that strictly matches one parameter is supplied with multiple values.
Copy code
<http://example.com/path?id=1&id=2&id=3|example.com/path?id=1&id=2&id=3>
For this URL we only want a response if the
id
parameter is supplied 3 times with each distinct value. The order is not important and could change. I have seen some github issues about this which suggest it is implemented but I cannot find the relevant docs
t

Tom

02/01/2024, 3:32 PM
Hi Adam, there are some match operators specifically for this use case. Documented here: https://wiremock.org/docs/request-matching/#matching-headerquery-parameter-containing-multiple-values
a

Adam Cox

02/01/2024, 3:43 PM
Wonderful - thank you. Not sure how i missed that in the docs
t

Tom

02/01/2024, 3:43 PM
We’re working on improving their layout 🙂