You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
Wonder if there is a way to switch between different environments for the vars in the restclient file. eg. I might use the same set of request (urls) for local and test environments. some vars like hostname will be different for different environments. Would be nice to easily switch environments.
One solution would be to put environment related vars in a separate file and included them at the beginning of the restclient file.
What do you think?
Thanks
The text was updated successfully, but these errors were encountered:
then reference those variables in restclient file:
:api-host := (concat api-host "/get-users")
:custom-headers := <<
(concat "username: " user-name "\n"
"userId: " 1 "\n")
You can have another file called production.el and just put the same set of variables.
when you want to switch envs, just evaluate the loading statement of that env.
@pashky if you think the above is ok, could you help to put those into documentation?
Thanks
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Thanks a lot for authoring this awesome package.
Wonder if there is a way to switch between different environments for the vars in the restclient file. eg. I might use the same set of request (urls) for local and test environments. some vars like hostname will be different for different environments. Would be nice to easily switch environments.
One solution would be to put environment related vars in a separate file and included them at the beginning of the restclient file.
What do you think?
Thanks
The text was updated successfully, but these errors were encountered: