Updated Response Templating (markdown)

Stef Heyenrath
2024-05-21 07:29:37 +02:00
parent 833abd6f51
commit 75146269c2

@@ -58,11 +58,14 @@ server
"Response": {
"Headers": { "Content-Type": "application/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
For using Scriban as templating engine, just provide the type:
#### C#