mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 07:24:34 +01:00
Updated Response Templating (markdown)
@@ -77,8 +77,6 @@ Or using the admin mapping file:
|
||||
]
|
||||
},
|
||||
"Response": {
|
||||
"StatusCode": 200,
|
||||
"BodyDestination": "SameAsSource",
|
||||
"Body": "{{JsonPath.SelectToken request.body \"$.Manufacturers[?(@.Name == 'Acme Co')]\"}}",
|
||||
"UseTransformer": true,
|
||||
"Headers": {
|
||||
@@ -105,7 +103,6 @@ Note that also replacing values in a Json Object and returning a the body as Jso
|
||||
]
|
||||
},
|
||||
"Response": {
|
||||
"StatusCode": 200,
|
||||
"BodyAsJson": {
|
||||
"path": "{{request.path}}",
|
||||
"result": "{{JsonPath.SelectToken request.bodyAsJson \"username\"}}"
|
||||
|
||||
Reference in New Issue
Block a user