Challenge: Read Order

Challenge yourself by writing a test to read an existing order.

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:

Press + to interact
{
"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 ...

Access this course and 1400+ top-rated courses and projects.