Match query string parameters as a set of name/value pairs
See original GitHub issueI’ve been using the WireMock record feature to create a mock of a REST API. The generation works pretty well, except that the matching of query strings in URLs seems to be a basic string equality type of match. This is fine for single parameter query strings, but means that URLs with multiple parameters MUST honour the order used in the recording (mappings
), which isn’t much use. The query string should be considered as a set of (unordered) name/value pairs and matched as such.
The following URLs should be considered identical:
examlpe.com/path?number=1&string=hello&date=01-01-1970
examlpe.com/path?number=1&date=01-01-1970&string=hello
examlpe.com/path?string=hello&date=01-01-1970&number=1
examlpe.com/path?string=hello&number=1&date=01-01-1970
examlpe.com/path?date=01-01-1970&string=hello&number=1
examlpe.com/path?date=01-01-1970&number=1&string=hello
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:13
Top Results From Across the Web
How to Use Query Strings and Parameters for Marketers
To do this, you'll need to add a key-value pair where the key is first_name and the value will be the variable subscriber.first_name....
Read more >4 Ways to Get Value from Query string | by bitbug
Each key of the query string will have a value, although the value may not exist. This is the same as the object...
Read more >Regex for extracting key-value pair from HTTP Query String
I understand this data to be www-form-urlencoded, or alternatively it might be known as query string format. The object is to extract the...
Read more >The query string (name/value pairs) is sent in the URL of a ...
Example: I need to pass a input parameter as query string in URL and need to get some data as a output according...
Read more >Query Parameters - Routing - Ember Guides
Query params allow for additional application state to be serialized into the URL that can't otherwise fit into the path of the URL...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Has this been fixed? From my testing:
Creates:
Hi Tom ,
I’ve created the issue #978
Thanks ,