-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing issue with WildcardMatcher and '?' #28
Comments
I guess you want to match parameters? ... Create().WithParam("bar", "1", "2"); which will match an url like : |
Thanks StefH. {
"Request": {
"Path": {
"Matchers": [
{
"Name": "WildcardMatcher",
"Pattern": "/config/api/foundation/economic-regions/search"
}
]
},
"Methods": [
"get"
]
},
"Response": {
"BodyAsJson": _{"Response_Json": "Goes here"}_,
"Headers": {
"Content-Type": "application/json"
}
}
} so your Create().WithParam("bar", "1", "2"); would be a RequestMessageParamMatcher? and at what level in the above config .json's "Request" would it go? |
Maybe a better option would be to use the RegexMatcher to create a regular expression which matches your url |
Sorry for the late response. I've got the response mapped using .withParam(); and got my mapping.json file configured using it. Thanks again. |
Cool ! |
Hi
I'm building a mock response for the uri...
/config/api/foundation/economic-regions/search?channel=1&brand=2
though the mock is setup... I'm getting response for all characters except ? in the uri.
like,
/config/api/foundation/economic-regions/searchachannel=1&brand=2
/config/api/foundation/economic-regions/search.channel=1&brand=2
From the code here, I see the Regex Replace(@"?", ".")
How do I build the mock for my uri? Please Help.
The text was updated successfully, but these errors were encountered: