Logo
30 Day Challange API Documentation

Day 01: Fork a collection

Number of APIs: 2


Instructions for Day 1: Fork a collection

  1. Get the challenge: Fork [the parent collection Day 01: Fork a collection] to your own public workspace.
  2. Read the documentation: In your fork, select the first folder Fork a collection. Expand the context bar on the right to follow the instructions in the collection documentation. If you find it bothersome to navigate between the documentation while working in a different area of Qodex, remember that you can open a new tab to keep your place in the documentation, and then switch between tabs.
  3. Submit your solution: Select the second folder Submit your solution and follow the instructions in the documentation to validate your solution.

Concepts covered

  • [Forking a collection]
  • [Viewing documentation]
  • [Sending a request]

Additional resources

Next challenge

  • [Collections and environments]


1. Fork a collection - echo

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

It's time to work on your first challenge.

  1. Review the request: Notice the different parts of this API request.
    • POST HTTP request method - to send new data to an API
    • https://Qodex-echo.com/post request URL
    • JSON request body
  2. Send the request: Send the request, and look at the response on the bottom.
    • HTTP status code
    • Response time
    • Response size
    • Response body
  3. Inspect the response body: Under the Pretty view of the response body, inspect the JSON data object returned from the server. This sample endpoint from [Qodex's Echo API] echoes back data provided by the client.

In the JSON data response, find a header called user-agent and copy the value that appears after the colon symbol. We will need this data for the next step. It should look something like this:

"user-agent": "<copy-this-part-here>",

Once you find this data, move on to the next folder in this collection to submit your solution.



2. Submit your solution - submit

GET https://postman-echo.com/get?user-agent="PostmanRuntime/7.31.3"

It's time to submit your first solution.

  1. Enter your data: Under the Params tab, find the key user-agent. Replace the value your-data-here with the data you found in the previous step. When you update the query parameters, notice the request URL also updates with this new information.
  2. Validate your solution: Hit Send and look under the Tests tab of the server response at the bottom to review your test results.
  3. Under the Tests tab, click on the Visualize option to see some fun output!

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