Challenge: Delete an Order
Challenge yourself by writing a test to delete an order.
We'll cover the following...
Overview
The DELETE api/orders/{{id}}
endpoint allows us to remove an order. When we make a request to the endpoint, the API responds with data including the status of the request and the order name and ID:
Press + to interact
{"success": boolean,"name": "string","id": "string"}
Let's explain the code above:
In line 2, the value for the
success
property is a boolean.In ...
Access this course and 1400+ top-rated courses and projects.