I’ve looked at several tutorials on the blog and youtube, but I don’t have a development background and not quite sure how to translate their specific use cases to mine. (I tried linking them but my account isn’t old enough)
Ok; now on to what I want to do. I work for a weather forecasting organization and we have thousands of weather stations that are constantly being updated so I have one API that just gives me every single station in our network:
"id": "037", "name": "Field 37 (Nord-NW)", "latitude": 39.81953, "longitude": -122.01292, "elevation": 156, "timeZone": "America/Los_Angeles"
In the next API we use the id to request the latest reading of that station:
To do this I have entered the following code in the tests of the first GET request.
var jsonData = JSON.parse(responseBody);
Then in the second GET request I have
But postman says the variable is undefined and in the environment tab it doesn’t provide any initial or current values. The point behind all of this is to get the data into Microsoft’s Power BI so I can create graphs and maps and such; but don’t want to have to manually bring in the current API every time we add a new station (which is basically daily).
Thanks for any help you can provide