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 /alumni/:studentId #64

Closed
3 tasks
ranasobeid95 opened this issue Apr 3, 2020 · 0 comments
Closed
3 tasks

GET /alumni/:studentId #64

ranasobeid95 opened this issue Apr 3, 2020 · 0 comments
Assignees

Comments

@ranasobeid95
Copy link
Collaborator

Route: GET api/v1/alumni/:studentId

Acceptance Criteria

  • DB query

  • Response

  • Testing


DB query
 SELECT * FROM student WHERE  id=studentId ;

Response
  • Success
{ StatusCode: 200,
  data: {
          id,
          name,
          email,
          githubLink,
          image,
          cohortId
        }
}
  • Failed
{ statusCode: 404, message: "Student does not exist"  }
Testing

Successful test if

  • statusCode === 200

#5

@ranasobeid95 ranasobeid95 changed the title GET api/v1/alumni/:studentId GET /alumni/:studentId Apr 3, 2020
Mu7ammadAbed added a commit that referenced this issue Apr 4, 2020
I handled route /alumni/:studentId with the covering tests
I made extra tests for uncoveres error lines
I organized the tests

Relates #64
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