Logo
QuinceDiasJaviteran API Documentation

Day 05: Variables and scripts

Number of APIs: 3


Instructions for Day 5: Variables and scripts

  1. Get the challenge: Fork the parent collection to your own public workspace.
  2. Read the documentation: 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 and follow the instructions in the documentation to validate your solution.

Learning objectives

  • Set and get variables using code
  • Use variables to store and pass along data
  • Run a collection or folder

Concepts covered

  • [Variable scopes]
  • [Defining variables]
  • [Defining variables in scripts]
  • [Accessing variables]
  • [Scripting in Qodex]
  • [Collection Runner]

Additional resources

  • [10 tips for working with variables] blog


1. Submit your solution - submit collection

GET https://api.getpostman.com/collections/20019195-0e534a28-55ae-44e1-b121-c657eb5dece2



2. Variables and scripts - get Canadian user

GET https://randomuser.me/api?nat=CA



3. Variables and scripts - echo the user

POST https://postman-echo.com/post



ENDPOINTS