As a contractor, I should be able to delete a laborer, so that I can remove old or inconsistent laborer records #31
Labels
user story
A brief explanation of a functionality or an interaction with the system, from a user's perspective
Summary
As a
contractor
, I should be able to delete a laborer, so that I can remove old or inconsistent laborer records.Acceptance Criteria
GIVEN a
contractor
is deleting a laborer in the desktop appWHEN the app hits the
laborers/:id
endpoint with a valid DELETE request, containing the path parameter::id
, the unique id of the laborer whose details are needed.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
A typical test case for a DELETE request would look like this:
/laborers
endpointid
returned from the POST, make a DELETE request to/laborers/:id
endpoint/laborers/:id
endpoint should return a 404 not found status code.The text was updated successfully, but these errors were encountered: