mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-13 11:21:02 +02:00
Updated Request Matcher FormUrlEncodedMatcher (markdown)
@@ -1,7 +1,7 @@
|
|||||||
## FormUrlEncodedMatcher
|
## FormUrlEncodedMatcher
|
||||||
Can be used to check if a Form Url Encoded body contains the key-value pairs.
|
Can be used to check if a Form Url Encoded body contains the key-value pairs.
|
||||||
|
|
||||||
#### C# option
|
### C# option
|
||||||
```csharp
|
```csharp
|
||||||
var server = WireMockServer.Start();
|
var server = WireMockServer.Start();
|
||||||
server.Given(
|
server.Given(
|
||||||
@@ -16,7 +16,7 @@ server.Given(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
#### JSON Mapping option
|
### JSON Mapping option
|
||||||
``` json
|
``` json
|
||||||
{
|
{
|
||||||
"Request": {
|
"Request": {
|
||||||
@@ -59,3 +59,7 @@ server.Given(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### :memo: Notes
|
||||||
|
- You can also use `IgnoreCase`
|
||||||
|
- And you can also use wildcards like: `name=John*`
|
||||||
Reference in New Issue
Block a user