As a contractor, I should be able to delete equipment, so that I can remove old or inconsistent equipment entries.
Acceptance Criteria
GIVEN a contractor is deleting an equipment in the desktop app
WHEN the app hits the equipment/:id endpoint with a valid DELETE request, containing the path parameter:
:id, the unique id of the equipment being removed.
THEN the app should receive a status 200AND in the response, the following information should be returned:
Summary
As a
contractor
, I should be able to delete equipment, so that I can remove old or inconsistent equipment entries.Acceptance Criteria
GIVEN a
contractor
is deleting an equipment in the desktop app WHEN the app hits theequipment/:id
endpoint with a valid DELETE request, containing the path parameter::id
, the unique id of the equipment being removed.THEN the app should receive a status
200
AND in the response, the following information should be returned:Sample Request/Sample Response
Resources
Dev Notes
{Some complementary notes if necessary}
Testing Notes
Scenario 1: DELETE request is successful:
/equipment
endpoint.id
returned from the POST, make a DELETE request to/equipment/:id
endpoint./equipment/:id
endpoint should return a 404 not found status code.Scenario 2: DELETE request is forbidden:
/equipment/:id
endpoint using ainspector
account token.