ucsb-cs156-s24 / team02-s24-5pm-3

https://ucsb-cs156-s24.github.io/team02-s24-5pm-3/
0 stars 0 forks source link

Add `DELETE` endpoint for a specific record in UCSBOrganization table. #18

Closed github-actions[bot] closed 4 months ago

github-actions[bot] commented 4 months ago

Dependencies

This issue should be completed after the issue with the title "Create UCSBOrganizationController..."

Overview

In this issue, we add one more method from the example Controller used as a basis for our code; namely the method with the annotation shown below:

Annotation Purpose
@DeleteMapping("") Delete a single record from the table; use the value passed in as a @RequestParam to do a lookup by id. If a matching row is not found, throw an EntityNotFoundException.

You'll need to copy over the code for the DELETE method from the example controller, and then paste those into UCSBOrganizationController.java and edit them to match your database table.

Then, copy over the tests that pertain to the DELETE method from the example controller, paste those into UCSBOrganizationControllerTests.java and edit them to match your database table.

Acceptance Criteria:

What to do next

Do a PR, following all of the usual steps (title, description, Closes #n text, dragging issue to "In Review", requesting reviewers).

Check to see if any fellow team members PRs need to be reviewed.

Then, assign yourself the next incomplete issue for your database table (UCSBOrganization)

Follow all the usual steps (assign to self, drag to "In Progress", start new branch.)

When you are done with all issues for UCSBOrganization, please give your full attention to helping others on your team to complete the sprint, so that the team is ready to submit on Canvas by the deadline.