Forum Discussion

Glutor's avatar
Glutor
Frequent Visitor
4 years ago

Need to pass a parameter to the REST request from groovy

Hi,

 

If you have a request like this for example:

https://serverxyz.com/{customerid}/orders.html

 

How is it possible in groovy to change that parameter and then query again to get the new response?

What I tried to achieve is (for example here) is to get all customer in a first query (this works), and then loop all the customer ids and for each to pass it to the orders query and get a response for each.

 

So the second part of the question is how to refresh the (order) request after changing it's parameter.

 

The parameter style I tried to use is template.

 

Thank you,

Alex

No RepliesBe the first to reply