Enable env variable placeholder replacement when including file in request
See original GitHub issueIt would be great if env variable placeholders would also be replaced in included files.
// My Env File
{
"dev": {
"foo": "bar"
}
}
// My payload "payload.json" as a separate file
{
"foo": "{{foo}}"
}
POST my.host.com
Content-Type: application/json
< ./payload.json
Currently, when sending the request, it would send the exact payload and not replace the {{foo}}
placeholder.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
How to replace ${} placeholders in a text file? - Stack Overflow
Here is a solution from yottatsa on a similar question that only does replacement for variables like $VAR or ${VAR}, and is a...
Read more >Deck support placeholder replace · Issue #191 · Kong/deck
Hi, is it possible to apply a sort of placeholder substitution into deck sync ... feat(file) implement env var substitution for state files...
Read more >How to use a YAML file or environment variables to populate ...
Decide where you would like to save the desired credentials or config values - in a YAML file, environment variables, or a combination...
Read more >Environment variables in Compose | Docker Documentation
Substitute environment variables in Compose files. If you have multiple environment variables, you can substitute them by adding them to a default environment...
Read more >Using variables | Postman Learning Center
Videos. How to Use Variables in Postman ... Intro to Postman | Chain Requests · Manage CLI Environment Variables | Postman Level Up....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do you have an example PDF for this?
I tried it out with these two files: Foo.md Converted to PDF: Foo.pdf
I then sent this request:
This was the response:
I built the response PDF file out of the response data and recieved this: Response.pdf
Its the exact same PDF file and no replacement has happened.
Is this what you had in mind as a test? If not, I can test another case 😃
I updated environmentConfig to allow configuration of a white list of extensions which automatically inject variables. I think this simplifies your use case