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

Implement GET endpoint for user (getUser and getUsers) #34

Open
aryang13 opened this issue Dec 23, 2023 · 0 comments · Fixed by #62
Open

Implement GET endpoint for user (getUser and getUsers) #34

aryang13 opened this issue Dec 23, 2023 · 0 comments · Fixed by #62
Assignees

Comments

@aryang13
Copy link
Contributor

aryang13 commented Dec 23, 2023

Acceptance Criteria

getUser

  • Correct URL schematics for retrieving a user (e.g /user/{userId})
  • Retrieve all info of specific user from the database (JSON object)

getUsers

  • Retrieve all info for all users from the database (array of JSON objects)

    • only need to return certain info for each user
      • decide which info is necessary to view on the table of the home page
        • name
        • role
        • email
        • status?
  • Make a Postman request for both and get the correct info

Development tasks

  • Retrieve info from the database
  • send back the database-generated User ID and all profile info

Learning Opportunities

  • Making an HTTP GET endpoint
  • How to retrieve info from a database
@xavier-c-lam xavier-c-lam linked a pull request Jan 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants