Hi Team - (Reposting)Would love to hear your thoughts on this.
Request matching needs to separate out query params so we match only against the query param keys and not the values. Any suggestions on how to handle this? I tried Wiremock Extension to capture the stubs and modify the content with the regex but seems like its complicated. If I have 3 different query params and I need to match only the key for the first query param and leave the others.
t
Tom
06/03/2025, 12:42 PM
This may be a rare case where it’s easiest to match the whole URL via regex so e.g. in JSON form, something like this if we wanted to match a query parameter name like `my123param`:
Copy code
"urlPattern": ".*my[a-z0-9]+param.*"
d
Deepak Jayakumar
06/03/2025, 3:52 PM
@Tom - Thanks for your response. I wrote a logic in StubMappingTransformer that takes the stub data and change the urlPath to urlPathPattern with the regex added and I think I need to stick to that approach.