Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELETE projects/:projectId | Route #33

Closed
3 tasks done
MohammedAlghazali opened this issue Mar 27, 2020 · 0 comments
Closed
3 tasks done

DELETE projects/:projectId | Route #33

MohammedAlghazali opened this issue Mar 27, 2020 · 0 comments
Assignees

Comments

@MohammedAlghazali
Copy link
Member

MohammedAlghazali commented Mar 27, 2020

relates #5

Route: DELETE api/v1/projects/:projectId

Acceptance Criteria

  • DB query
  • Response
  • Testing

DB query

DELETE FROM project WHERE id = projectId;

Response

  • Success
{ StatusCode: 200,
  data: { message: "Project deleted successfully" }
}
  • Failed
{statusCode:400, message:"Invalid"}

Testing

to be a successful test

  • status === 200
  • typeof(data) === "object"
AlaaSaadeddin pushed a commit that referenced this issue Apr 2, 2020
AlaaSaadeddin pushed a commit that referenced this issue Apr 2, 2020
AlaaSaadeddin pushed a commit that referenced this issue Apr 2, 2020
AlaaSaadeddin pushed a commit that referenced this issue Apr 2, 2020
MohammedAlghazali added a commit that referenced this issue Apr 2, 2020
MohammedAlghazali added a commit that referenced this issue Apr 2, 2020
MohammedAlghazali added a commit that referenced this issue Apr 2, 2020
MohammedAlghazali added a commit that referenced this issue Apr 2, 2020
AlaaSaadeddin pushed a commit that referenced this issue Apr 4, 2020
AlaaSaadeddin pushed a commit that referenced this issue Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants