mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 01:38:53 +02:00
Updated Request Matching JsonPartialWilcardMatcher (markdown)
@@ -1,4 +1,4 @@
|
|||||||
## JSON (JsonPartialWilcardMatcher)
|
## JSON (JsonPartialWildcardMatcher)
|
||||||
Based on JsonPartialMatcher but with wildcard (`*`) support.
|
Based on JsonPartialMatcher but with wildcard (`*`) support.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@@ -13,7 +13,7 @@ server
|
|||||||
.Given(Request
|
.Given(Request
|
||||||
.Create()
|
.Create()
|
||||||
.WithPath("/jsonpartialmatcher1")
|
.WithPath("/jsonpartialmatcher1")
|
||||||
.WithBody(new JsonPartialWilcardMatcher("{ \"test\": \"*\" }"))
|
.WithBody(new JsonPartialWildcardMatcher("{ \"test\": \"*\" }"))
|
||||||
.UsingPost())
|
.UsingPost())
|
||||||
.WithGuid("debaf408-3b23-4c04-9d18-ef1c020e79f2")
|
.WithGuid("debaf408-3b23-4c04-9d18-ef1c020e79f2")
|
||||||
.RespondWith(Response.Create().WithBody(@"{ ""result"": ""jsonpartialbodytest1"" }"));
|
.RespondWith(Response.Create().WithBody(@"{ ""result"": ""jsonpartialbodytest1"" }"));
|
||||||
@@ -37,7 +37,7 @@ server
|
|||||||
],
|
],
|
||||||
"Body": {
|
"Body": {
|
||||||
"Matcher": {
|
"Matcher": {
|
||||||
"Name": "JsonPartialWilcardMatcher",
|
"Name": "JsonPartialWildcardMatcher",
|
||||||
"Pattern": "{ \"test\": \"*\" }"
|
"Pattern": "{ \"test\": \"*\" }"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user