cancel
Showing results for 
Search instead for 
Did you mean: 

Need to pass a parameter to the REST request from groovy

Highlighted
Frequent Visitor

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

New Here?
Join us and watch the welcome video:
Top Kudoed Authors