mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 01:08:28 +02:00
Updated Response Templating (markdown)
@@ -58,11 +58,14 @@ server
|
|||||||
"Response": {
|
"Response": {
|
||||||
"Headers": { "Content-Type": "application/xml" },
|
"Headers": { "Content-Type": "application/xml" },
|
||||||
"BodyAsFile": "c:\\temp-wiremock\\__admin\\mappings\\_{{request.query.MyUniqueNumber}}_\\MyXmlResponse.xml",
|
"BodyAsFile": "c:\\temp-wiremock\\__admin\\mappings\\_{{request.query.MyUniqueNumber}}_\\MyXmlResponse.xml",
|
||||||
"UseTransformer": true
|
"UseTransformer": true,
|
||||||
|
"UseTransformerForBodyAsFile": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
:memo: Note that the `UseTransformerForBodyAsFile` is required to not just transform the filename itself, but also transform the content from that specified file. (#386 and #1106)
|
||||||
|
|
||||||
### Scriban
|
### Scriban
|
||||||
For using Scriban as templating engine, just provide the type:
|
For using Scriban as templating engine, just provide the type:
|
||||||
#### C#
|
#### C#
|
||||||
|
|||||||
Reference in New Issue
Block a user