Skip to content
Discussion options

You must be logged in to vote

Thanks for the suggestion — this is a great fit and it's now implemented on master (commit bba4e4ea5).

You actually get two complementary ways to combine external files with templating:

1. Template a FILE response body — exactly what you asked for. A static httpResponse whose body is a FILE body can now mark that file as a template with a templateType. The file contents are rendered against the request before being returned, while the status code, headers and content type still come from the static response:

{
  "httpRequest": { "path": "/some/path" },
  "httpResponse": {
    "statusCode": 200,
    "body": {
      "type": "FILE",
      "filePath": "responses/order.json",
      "templateType"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamesdbloom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants