mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-26 10:49:19 +02:00
Updated Stubbing (markdown)
@@ -30,6 +30,8 @@ server
|
|||||||
HTTP methods currently supported are: GET, POST, PUT, DELETE, HEAD. You can specify ANY (`.UsingAny`) if you want the stub mapping to match on any request method.
|
HTTP methods currently supported are: GET, POST, PUT, DELETE, HEAD. You can specify ANY (`.UsingAny`) if you want the stub mapping to match on any request method.
|
||||||
|
|
||||||
### Json Mapping example
|
### Json Mapping example
|
||||||
|
The same mapping as above, expressed in a json mapping:
|
||||||
|
|
||||||
``` json
|
``` json
|
||||||
{
|
{
|
||||||
"Request": {
|
"Request": {
|
||||||
@@ -55,6 +57,8 @@ HTTP methods currently supported are: GET, POST, PUT, DELETE, HEAD. You can spec
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
More details on the json mapping API can be found here : [Admin-API-Reference](https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference).
|
||||||
|
|
||||||
### C# Example for a body with bytes
|
### C# Example for a body with bytes
|
||||||
|
|
||||||
A response body in binary format can also be specified as a `byte[]` via an overloaded `WithBody()`:
|
A response body in binary format can also be specified as a `byte[]` via an overloaded `WithBody()`:
|
||||||
|
|||||||
Reference in New Issue
Block a user