Challenge: Read Order
Challenge yourself by writing a test to read an existing order.
We'll cover the following...
We'll cover the following...
Overview
The GET api/orders/{{id}} endpoint allows us to read the data for a single order. When we make a request to the endpoint, the API responds with data including the details for the requested order:
Let's explain the code above:
In line 3, the value for the
successproperty is a boolean.In lines 4–12, the values for each field in the
data...