[GH-ISSUE #1687] Ability to have predefined variables that can be used in the Request Composer #1679

Open
opened 2026-03-03 19:53:26 +03:00 by kerem · 2 comments
Owner

Originally created by @diego-pan on GitHub (Jun 21, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1687

Originally assigned to: @NghiaTranUIT on GitHub.

Description

If I compose multiple requests, I would like to be able to predefine variables that I can then use in one or more of my requests.

For example, let's say I have requests that have a header that takes values 'X'. I would like to be able to compose my requests, and all set a header's value to this variable, for all those requests.

Why this feature/change is important?

Let's say I am testing an API which has some sort of Authorization value which permits me to call those endpoints. If I have one place where I can set a variable to a valid value for authorisation, it would save a lot of copying and pasting for all requests.

Is scripting the way to do this? There's currently no UI support for this?

Originally created by @diego-pan on GitHub (Jun 21, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1687 Originally assigned to: @NghiaTranUIT on GitHub. ## Description If I compose multiple requests, I would like to be able to predefine variables that I can then use in one or more of my requests. For example, let's say I have requests that have a header that takes values 'X'. I would like to be able to compose my requests, and all set a header's value to this variable, for all those requests. ## Why this feature/change is important? Let's say I am testing an API which has some sort of Authorization value which permits me to call those endpoints. If I have one place where I can set a variable to a valid value for authorisation, it would save a lot of copying and pasting for all requests. Is scripting the way to do this? There's currently no UI support for this?
Author
Owner

@NghiaTranUIT commented on GitHub (Jun 21, 2023):

It totally makes sense 👍 I'd introduce the Environment Variable as Postman does

It allows you to define variables, e.g. {{SERVER_NAME}}, {{TOKEN_API}}, ...

I will add it to the next releases 👍

<!-- gh-comment-id:1600453596 --> @NghiaTranUIT commented on GitHub (Jun 21, 2023): It totally makes sense 👍 I'd introduce the Environment Variable as Postman does It allows you to define variables, e.g. `{{SERVER_NAME}}, {{TOKEN_API}}`, ... I will add it to the next releases 👍
Author
Owner

@diego-pan commented on GitHub (Jun 22, 2023):

Thanks for being willing to introduce this, @NghiaTranUIT 👍🏻

<!-- gh-comment-id:1601859906 --> @diego-pan commented on GitHub (Jun 22, 2023): Thanks for being willing to introduce this, @NghiaTranUIT 👍🏻
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1679
No description provided.