mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 07:24:34 +01: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.
|
||||
|
||||
### 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()`:
|
||||
|
||||
Reference in New Issue
Block a user