我正在尝试使用以下存根访问 WireMock,但似乎查询参数未匹配。这是回应:
Request was not matched
=======================
-----------------------------------------------------------------------------------------------------------------------
| Closest stub | Request |
-----------------------------------------------------------------------------------------------------------------------
|
GET | GET
/mpp-pricing/v1/agreements\?accountId=.* | /mpp-pricing/v1/agreements?accountId=5388afaf-ee3d-44ed-a<<<<< URL does not match. When using a regex, "?" should be "\\?"
| b2a-0035156bb0a2
|
这是我使用的存根:
{
"request": {
"method": "GET",
"urlPathPattern": "/mpp-pricing/v1/agreements\\?accountId=.*"
},