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