Updated Stubbing (markdown)

Stef Heyenrath
2022-08-17 08:01:51 +02:00
parent 5166ad4ab5
commit 1770b4e37c

@@ -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.
### Json Mapping example
The same mapping as above, expressed in a json mapping:
``` json
{
"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
A response body in binary format can also be specified as a `byte[]` via an overloaded `WithBody()`: