I have an endpoint: https://myendpoint.com/“product_id” and in the response is an “inStock” response with the value “Yes” or “No”.
I’ve been able to work out how to return the data for one “product_id” I need using bodyData etc in the Tests tab.
What I would like to do is to be able to return those systematically for different “product_id” - can this be done with a path variable and a CSV upload in Runner?
I know all the product numbers so could type them all in manually to return the value, but would like to know it there is someway to return the GET call data automatically by supplying all the URL variables in one file and having Postman iterate though each.
The console response would look something like:
I have looked at multiple tutorials, but they all seem to deal with variables that are being POST via the call rather than retrieving multiple endpoints.
In short, I would like to call multiple unique API URLS and retain one specific value in the body data for each URL