-
Notifications
You must be signed in to change notification settings - Fork 0
Get all users route #69
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
Conversation
nourshoreibah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Just a couple quick suggestions to make sure tests pass. also sorry for all the merge commits
Co-authored-by: Nour Shoreibah <[email protected]>
Co-authored-by: Nour Shoreibah <[email protected]>
Co-authored-by: Nour Shoreibah <[email protected]>
Co-authored-by: Nour Shoreibah <[email protected]>
Co-authored-by: Nour Shoreibah <[email protected]>
nourshoreibah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!!
| const normalizedPath = rawPath.replace(/\/$/, ''); | ||
| const method = (event.requestContext?.http?.method || event.httpMethod || 'GET').toUpperCase(); | ||
|
|
||
| console.log('DEBUG - rawPath:', rawPath, 'normalizedPath:', normalizedPath, 'method:', method); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe remove if not needed anymore
| @@ -0,0 +1,5 @@ | |||
| module.exports = { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait why was i able to run jest tests without this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i got an error when i tried to test and it worked when i deleted it
|
Business logic is all correct, I think my update test cases are screwing yours over. |
denniwang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i approve this pr
ℹ️ Issue
Closes #49
📝 Description
Added GET /users endpoint to retrieve users from the database. Optional pagination with page number and limit implemented.
Briefly list the changes made to the code:
✔️ Verification
Wrote Jest tests as well as checked different cases on Swagger to ensure it was working.


🏕️ (Optional) Future Work / Notes
Perhaps having user authentication for who can get users?