mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 16:58:27 +02:00
Updated Request Matching (markdown)
@@ -16,6 +16,7 @@ At this moment these matchers are supported:
|
|||||||
* [LinqMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#dynamic-linq-linqmatcher)
|
* [LinqMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#dynamic-linq-linqmatcher)
|
||||||
* [CSharpCodeMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#csharp-code-csharpcodematcher)
|
* [CSharpCodeMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#csharp-code-csharpcodematcher)
|
||||||
* [JsonMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-jsonmatcher)
|
* [JsonMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-jsonmatcher)
|
||||||
|
* [JsonPartialMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-jsonpartialmatcher)
|
||||||
* [JsonPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-path-jsonpathmatcher)
|
* [JsonPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#json-path-jsonpathmatcher)
|
||||||
* [JmesPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#jmes-path-jmespathmatcher)
|
* [JmesPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#jmes-path-jmespathmatcher)
|
||||||
* [XPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#xpathmatcher)
|
* [XPathMatcher](https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching#xpathmatcher)
|
||||||
@@ -265,7 +266,6 @@ server
|
|||||||
{ "x": 42, "s": "?" }
|
{ "x": 42, "s": "?" }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### C# option 3
|
#### C# option 3
|
||||||
It's also possible to use set `IgnoreCase` to true, this means that the PropertNames and PropertyValues will be matced regarding any case.
|
It's also possible to use set `IgnoreCase` to true, this means that the PropertNames and PropertyValues will be matced regarding any case.
|
||||||
```csharp
|
```csharp
|
||||||
@@ -317,6 +317,8 @@ server
|
|||||||
{ "X": 42, "s": "S" }
|
{ "X": 42, "s": "S" }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### JSON Path (JsonPathMatcher)
|
### JSON Path (JsonPathMatcher)
|
||||||
Deems a match if the attribute value is valid JSON and matches the JSON Path expression supplied.
|
Deems a match if the attribute value is valid JSON and matches the JSON Path expression supplied.
|
||||||
A JSON body will be considered to match a path expression if the expression returns either a non-null single value (string, integer etc.), or a non-empty object or array.
|
A JSON body will be considered to match a path expression if the expression returns either a non-null single value (string, integer etc.), or a non-empty object or array.
|
||||||
|
|||||||
Reference in New Issue
Block a user