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

Make CRUD SQL queries for Users table #12

Closed
ThatMegamind opened this issue Nov 16, 2023 · 0 comments · Fixed by #25
Closed

Make CRUD SQL queries for Users table #12

ThatMegamind opened this issue Nov 16, 2023 · 0 comments · Fixed by #25
Assignees
Labels

Comments

@ThatMegamind
Copy link
Collaborator

Instructions

  • Write the SQL queries associated with CRUD (create, read, update, delete) routes for the users endpoint.

Notes

  • You can’t test the queries at the moment so just try your best and leave the queries in a temporary file under server/queries/users.sql.

Acceptance Criteria

  • GET - Returns all data from the Users table
  • GET/pending-accounts - Returns all data from Users table who are currently pending approval
  • POST - Adds a new row into Users table
  • PUT/:uid - Updates an existing user as approved
  • DELETE/:uid - Deletes an existing user given their id

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants