As a contractor, I should be able to delete projects, so that I can remove inconsistent or erroneous projects #77
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 projects, so that I can remove inconsistent or erroneous projects.Acceptance Criteria
GIVEN a
contractor
is deleting a project in the desktop appWHEN the app hits the
projects/:id
endpoint with a valid DELETE request, containing the path parameter::id
, the unique id of the project 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
Alongside the deletion of the project, all the data that comes under it is also deleted on cascade, e.g. it's milestones, rentals, orders, payments, worker logs etc.
This operation is highly dangerous and can cause irreversible loss of data so make sure to add a confirmation for it on the front end (something like github's delete repo).
Testing Notes
Scenario 1: DELETE request is successful:
/projects
endpoint.id
returned from the POST, make a DELETE request to/projects/:id
endpoint./projects/:id
endpoint should return a 404 not found status code.Scenario 2: DELETE request is forbidden:
/projects/:id
endpoint using ainspector
account token.The text was updated successfully, but these errors were encountered: