Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of json templating on files #80

Closed
pabloubal opened this issue Nov 12, 2018 · 1 comment
Closed

Support of json templating on files #80

pabloubal opened this issue Nov 12, 2018 · 1 comment
Assignees
Labels
feature New feature request

Comments

@pabloubal
Copy link

I'm currently experiencing an issue when trying to serve responses from a file, and it's that json templating doesn't work when using this model. If I serve the same response writing it inside the IDE, it works perfectly.

i.e. Response:
{
"test": "{{guid}}"
}

If I write this in the Body section of the IDE I get the following response:
$ curl localhost:3000
{"test":"c754fae3-a952-4f27-aabd-2ba3b7645fe0"}

Instead, if I serve this from a file I get the following response:
$ curl localhost:3000
{
"test": "{{guid}}"
}

@255kb 255kb added the feature New feature request label Nov 12, 2018
@255kb
Copy link
Member

255kb commented Nov 12, 2018

Good idea, it's sure that for now templating is not interpreted into files. Currently I am working on this ticket #52 which add support for templating in file path (so you can dynamically request files) and I will add the option to directly use file content as body.
I will plan your feature for the next release also, as it make sense to do all these improvements together

@255kb 255kb self-assigned this Nov 12, 2018
@255kb 255kb added this to the Next release milestone Nov 12, 2018
@255kb 255kb closed this as completed in f1f6ab7 Dec 16, 2018
@255kb 255kb removed this from the Next release milestone Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants