Search⌘ K
AI Features

Challenge: Read All Orders

Explore how to use Postman to test the GET api/orders endpoint of a work order manager. Understand how to import collections, run prerequisite requests, and write tests to verify order data retrieval accurately.

Overview

The GET api/orders endpoint allows us to retrieve all the current orders. When we make a request to the endpoint, the API responds with data including an array of objects for each order:

Markdown
{
"success": boolean,
"data": [
{
"name": "string",
"email": "string",
"category": "string",
"phone": "string",
"description": "string",
"date": "string",
"id": "string"
}
]
}

Let's explain the code above:

  • In line 3, the value for the success property is a boolean.

  • In lines ...