Step 6

Notice I must enter the API Key for every request. Also, the base URL of the endpoint is always the same http://dataservice.accuweather.com. We can store these values as constant variables inside Postman and reuse them. Using "collections" is one way to achieve this.

Click on the sidebar to open it up.

Click on "+" to create a new collection.

Give a name to this collection.

Under the "Variables" tab, enter the variables as key-value pairs.

Save the collection. Then, revisit the requests we've created in the previous sections. For each request, save it by clicking on the save button.

Give a name to your request and selected the collection we just created to save the request.

You can now update the request to use the collection's variables as shown below.