Skip to content

Body section able to use the parameters from the Param section #131

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

Closed
vtali opened this issue Feb 7, 2025 · 2 comments
Closed

Body section able to use the parameters from the Param section #131

vtali opened this issue Feb 7, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@vtali
Copy link

vtali commented Feb 7, 2025

Is your feature request related to a problem?

When supplying the parameter in the url (and especially with examples) and it is also a required parameter in the body of the json with some api endpoints

Describe the solution you'd like

It would be nice to have a {{ $params.XYZ }} or even like the environment variables to have it available within the {{ }}

Additional context

No response

@vtali vtali added the enhancement New feature or request label Feb 7, 2025
@AntonShuvaev
Copy link
Collaborator

Could you provide more details about your use case? Currently, you can define a variable in folder variables or dynamically in a pre-request script and use it in both the Params section and the Body. Would this approach solve your problem, or are you looking for something different?

@vtali
Copy link
Author

vtali commented Feb 13, 2025

I think you are right. I can add folder variables. And assign the path parameter and the body to the same.

We can close this request, I was thinking too local but this is a reasonable workaround when I have an api that needs the same value in the url Path and request Body.

@vtali vtali closed this as completed Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants