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 Catalog table #11

Closed
michellelin1 opened this issue Nov 16, 2023 · 0 comments · Fixed by #18
Closed

Make CRUD SQL queries for Catalog table #11

michellelin1 opened this issue Nov 16, 2023 · 0 comments · Fixed by #18
Assignees
Labels

Comments

@michellelin1
Copy link
Member

michellelin1 commented Nov 16, 2023

Instructions

  • Write the SQL queries associated with CRUD (create, read, update, delete) routes for the catalog 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/catalog.sql
  • Use question marks in place of where you would use variable data
    • ex. SELECT * FROM catalog WHERE id=?

Acceptance Criteria

  • GET - Returns all data from the catalog table
  • GET/:id - Returns the row that matches the id
  • POST - Adds a new row to the catalog table
    • Confirmed should be defaulted to true
  • PUT - Updates an existing row given an id
    • All fields are optional
  • DELETE - deletes an existing row given an 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