Service URL: DELETE /baskets/{basketReference}/items
Tokens:
basketReference – The basket reference of the basket to remove all items from a basket.
Remarks:
Removes all items from a basket.
Scenarios
Scenario | Outcome | Expected behaviour | Status Code | Response | |
---|---|---|---|---|---|
1 | Delete all items for a valid primary basket reference. | Success | All items should be deleted for the requested basket. | 200 | 200 Success Ok |
2 | Delete all items for a valid wishlist basket reference. | Success | All items should be deleted for the requested basket. | 200 | 200 Success Ok |
3 | Delete all items for an invalid basket reference. | NotFound | A bad request error should be raised. | 400 | ErrorMessage :Bad request. Could not delete items for basket reference <basketReference> |
Example Request:
DELETE: http: //localhost:8080/WebRestApi/rest/baskets/MUCFJAIBTVDK3HHNC444ZALMV4/items |
Example Response:
Status: 200 OK