Logo
30 Day Challange API Documentation

Day 16: Pagination

Number of APIs: 2


Instructions for Day 16: Pagination

  1. Get the challenge: Fork [the parent collection Day 16: Pagination] from the main workspace 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

  • [Variables]
  • [Pre-request and Test Scripts]
  • [Writing tests]
  • [Building request workflows]
  • [Running a collection]

Additional resources

Next challenge

  • [Visualizations]


1. Pagination - xkcd

GET http://xkcd.com/{{page}}/info.0.json



2. Submit your solution - submit

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

It's time to submit your solution.

  1. Use a Qodex environment: Find the Qodex API env environment from the previous challenge. Update the collectionUid with the current collection's ID.
  2. Add query param: Under the Params tab, add a key page with a value of the page with a failed test. For example, if your collection run ended with a call to page 2, you should input 2.
  3. 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