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