Logo
30-day challenge API Documentation

Day 05: Variables

Number of APIs: 3


Instructions for Day 5: Variables

  1. Get the challenge: Fork [the parent collection Day 05: Variables] to your own public workspace.
  2. Read the documentation: In your fork, select the first folder. Expand the context bar on the right to follow the instructions in the collection documentation.
  3. Submit your solution: Select the second folder Submit your solution and follow the instructions in the documentation to validate your solution.

Concepts covered

  • [Variable scopes]
  • [Defining variables]

Additional resources

  • [10 tips for working with variables] blog
  • Variables tiktok

Next challenge

  • [Tests]


1. Variables - collection variable

GET {{coindeskBaseUrl}}/v1/bpi/currentprice/btc.json



2. Variables - global variable

GET {{coindeskBaseUrl}}/v1/bpi/currentprice/{{currency}}.json



3. Submit your solution - submit

GET https://api.getpostman.com/collections/{{collectionUid}}

It's time to submit your solution.

  1. Get the collection ID: Get the collection ID in any way that you prefer.
  2. Update the request URL: Update the collectionUid in the request URL with the ID you got from the previous step, again using any method you prefer.
  3. Add your Qodex API key: Add your Qodex API key using any method you prefer, so that Qodex can authorize your request as shown under the Headers tab. > ⚠ Remember to only use CURRENT VALUE for sensitive tokens like your API key
  4. Validate your solution: Save your changes in the collection and environment. Hit Send and look under the Tests tab of the server response at the bottom to review your test results.

If you have any failures, review the failed test results or ask for support in the [community forum] When all of your tests pass, you are done with today's challenge. Remember to save your changes as you'll need to pass all the challenges to claim a 30 days of Qodex badge.



ENDPOINTS