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

GET projects/:id | Route #22

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

GET projects/:id | Route #22

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

Comments

@MohammedAlghazali
Copy link
Member

MohammedAlghazali commented Mar 26, 2020

relates #5

Route: GET api/v1/projects/:projectId

Acceptance Criteria
  • DB query
  • Response
  • Testing

Request body

 The request hasn't body

DB query

SELECT * FROM project WHERE id = id;

Response

  • Success
{ statusCode:200 ,
data:[{
id,
name,
description,
imgUrl,
githubLink,
websiteLink,
projectType,
cohortId,
}] }
  • Failed
{statusCode:400, message:"incorrect project id"}

Testing

to be a successful test

  • status === 200
  • typeof(data) === "array"
  • data.length !== 0
@MohammedAlghazali MohammedAlghazali changed the title projects/:id | Route GET projects/:id | Route Mar 26, 2020
@rehabas rehabas added in progress and removed To-Do labels Apr 1, 2020
@MohammedAlghazali MohammedAlghazali changed the title GET projects/:id | Route GET projects/:projectId | Route Apr 2, 2020
@rehabas rehabas changed the title GET projects/:projectId | Route GET projects/:id | Route Apr 2, 2020
rehabas added a commit that referenced this issue Apr 2, 2020
rehabas added a commit that referenced this issue Apr 2, 2020
@rehabas rehabas added Awaiting Review This PR is ready and waiting for review and removed in progress labels Apr 2, 2020
rehabas added a commit that referenced this issue Apr 2, 2020
relates #22
rehabas added a commit that referenced this issue Apr 2, 2020
rehabas added a commit that referenced this issue Apr 2, 2020
rehabas added a commit that referenced this issue Apr 2, 2020
@rehabas rehabas added Done and removed Awaiting Review This PR is ready and waiting for review labels Apr 2, 2020
@rehabas rehabas closed this as completed Apr 2, 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

3 participants