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

Reading variables from env file #1007

Open
IamGiel opened this issue May 17, 2022 · 3 comments
Open

Reading variables from env file #1007

IamGiel opened this issue May 17, 2022 · 3 comments

Comments

@IamGiel
Copy link

IamGiel commented May 17, 2022

First of all awesome job!

If there a way we can allow users to read variables from env variable file (for example)? A scenario: I have secret token from env file and I would like that to be read instead of writing it on the top the rest client .http file.

This is not an issue but maybe a feature we can implement.

@vkristijan
Copy link
Contributor

Not sure I understand the question.
It is possible to get the token from the env file, for example you can have token defined in the env file, and then in the .http one you make a request like this:

GET {{exampleEndpoint}}/api
Authorization: {{token}}

which would use the token defined in the env file.

@ufukty
Copy link

ufukty commented May 12, 2023

might be related #1070

@docwarems
Copy link

I stumbled across the same issue.

This doesn't work
image

While this works:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants