thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.64k stars 130 forks source link

Do environment variables support collections #1392

Open Zy76278 opened 1 year ago

Zy76278 commented 1 year ago

Please describe feature/problem details and the solution you'd like. Now I have a chain request, and the later request needs the result of the previous request. Now I set an environment variable in the previous request and then use it in the request. But if there are more function modules, the variables in the environment will be too many, because the variables are in the same level, which is not easy to manage. Can environment variables be stored in different collections? I've learned that there can be multiple environments, but I need to execute these in one environment for now. Or is there any other way you can implement the case where the request requires the response parameters of the previous request.

Describe alternatives you've considered

Are you using the free version/paid version/trial:

rangav commented 11 months ago

Hi @Zy76278 Currently not possible, you can save to env variables and delete variable as a cleanup process at the end from the last request.