As a Website admin
I need to delete an inventory item
So that I can remove items that are no longer available from the inventory.
Details and Assumptions:
Each Inventory Item has a unique ID.
The URL can be /inventory/{inventoryitem_id}.
The request will delete the item with the given inventoryitem_id from the inventory database.
Only authenticated admins should have access to delete items.
Acceptance Criteria:
Given the user is authenticated as admin
When the admin sends a DELETE request to /inventory/{inventoryitem_id}
Then the inventory item with the given ID should be deleted from the database.
As a Website admin I need to delete an inventory item So that I can remove items that are no longer available from the inventory.
Details and Assumptions:
Each Inventory Item has a unique ID.
The URL can be /inventory/{inventoryitem_id}.
The request will delete the item with the given inventoryitem_id from the inventory database.
Only authenticated admins should have access to delete items.
Acceptance Criteria:
Given the user is authenticated as admin When the admin sends a DELETE request to
/inventory/{inventoryitem_id}
Then the inventory item with the given ID should be deleted from the database.