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
ENV Variables in request highlighting #1029
Comments
I totally agree, in Insomnia it hardly took any time to figure out how env variables work but in postwoman, it is a bit difficult. |
Got it. Since |
Auto-complete is a start, but a custom component that allows you to choose more than just environment variables would be better, I think. Here is an example from the program "Paw". It auto-completes known environment variables and places them as a "badge". Here's an example of it grabbing the a jwt token from a login response using a jq filter. I know how I'd create something like this in React. I'd have a special input component that would have a dual renderer. One function would render how it should appear in the user-interface. The second render function would render how it should be used in a request. The underlying storable data would be an array of different types of blocks ( I think it could be done in a similar way in vue. |
That's great input. Visually, this is something I'd in mind. Let me dig deep into this approach. Will ping you in need of any help ;) |
Umm, I am actually working on the implementation of this. Along with a overhaul of the URL parsing system. Just that all new feature work is paused for a while to work on tests and improving the stability and reliability until the Teams feature has rolled out. |
Update: Environment variable highlighting is now implemented in the URL field as an Experiment. You can enable the experiment in the settings page. It is not stable yet, but it is on track to be stable soon. Closing this issue meanwhile. |
I feel a bit dumb for having to ask this, but what is the syntax for using environment variables in your URLs? I have an environment with variable Example:
|
Ex: Use environment variables enclosed in double angular brackets (<<>>) anywhere in request section. |
Thanks for the quick reply! And the awesome work you guys are doing :D |
Is your feature request related to a problem? Please describe.
Trying to use environment variables is pretty difficult, and we never know if a variable is successfully attached to the request
Describe the solution you'd like
If there was some kind of checking with underline or changing text color it would be much easier to identify wrong env. variables
Describe alternatives you've considered
Insomnia Rest does smth like this, as shown in the screenshot
Additional context
Attached Screenshots
The text was updated successfully, but these errors were encountered: