But my query is dynamic, I can pass only email or just phone, or both together, in this example it filters by passing phone as empty if I do not pass anything, which compromises the query, so I need to somehow solve this problem, example if the parameter is null or something like it should not be sent!
I don’t think it’s a good solution to create 3 requests that do the same thing just because of parameters of a query
I’m glad I’m not alone. I don’t see any reason why query params need to be part of the template in the first place. It does not pose a security threat in any way. It only makes the request template unnecessarily rigid.
The way I worked around it was to construct the query params as part of the path itself.
Let me tag @zach_jones_noel to take up this feedback. He is working on a similar case collecting feedback for potential duplication of request templates increasing the total count.
Currently, if you are using the query parameters in request template then it’s hard bound to create 3 different templates based on your use-case here -
Like @arunrajkumar235 mentioned, using query parameters in the path and setting them via context variable would be a better approach in this specific use case.