wiremock: Cannot match url with query parameters when both contain regular expressions
the following stub mapping:
{
"request" : {
"urlPath" : "/partners/[0-9]+/agents/[0-9]+/reports/loans/DAILY",
"method" : "GET",
"queryParameters" : {
"page" : {
"matches" : "[0-9]+"
},
"per_page" : {
"matches" : "[0-9]+"
}
}
},
"response" : {
"status" : 200
}
}
cannot match /partners/1/agents/1/reports/loans/DAILY?page=1&per_page=10
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (7 by maintainers)
The example in this documentation still uses
urlPath
.