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.
We'll cover the following...
We'll cover the following...
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:
Let's explain the code above:
In line 3, the value for the
successproperty is a boolean.In lines ...