Day 09: API workflows

Number of APIs: 3

Instructions for Day 9: API workflows

  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

  • Update requests dynamically such as for pagination
  • Write code to branch and loop API execution
  • Set variables conditionally to keep track of data

Concepts covered

  • [Variables]
  • [Scripts]
  • [Writing tests]
  • [Building request workflows]
  • [Running a collection]

Additional resources

  • [Example] in Qodex Answers workspace
  • [Sending asynchronous requests]
  • [Skip requests]
  1. API workflows - get starships GET https://swapi.dev/api/starships?page={{pageNumber}}

  2. API workflows - echo the starship POST https://postman-echo.com/post

  3. Submit your solution - submit collection GET https://api.getpostman.com/collections/25941648-66cb50f3-3456-4267-8adc-0808752210eb