Challenge: Read All Orders
Challenge yourself by writing a test to read all current orders.
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:
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
...
Access this course and 1400+ top-rated courses and projects.