24 create volunteer and tags table crud routes #33
+281
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Implemented CRUD routes for the Volunteers table, Tags table, and Volunteer–Tag relationship.
Volunteers Routes
The following volunteer routes were added and tested:
POST /volunteers– Create a new volunteerGET /volunteers– Retrieve all volunteersGET /volunteers/{id}– Retrieve a single volunteer by idPUT /volunteers/{id}– Update an existing volunteerDELETE /volunteers/{id}– Delete a volunteer by idTags Routes
The following tag routes were added and tested:
POST /tags– Create a new tagGET /tags– Retrieve all tagsGET /tags/{id}– Retrieve a single tag by idPUT /tags/{id}– Update an existing tagDELETE /tags/{id}– Delete a tag by idScreenshots/Media
All passing Volunteers Table routes tests on Postman:
All passing Tags Table routes tests on Postman:
Passing Postman Tests for Acceptance Criteria
[POST] Create a New Volunteer
[GET] Retrieve all Volunteers
[GET] Retrieve a Volunteer by Id
[PUT] Update an existing Volunteer
[DELETE] Delete a Volunteer by Id
[POST] Volunteer-Tag: Assign a Tag to a Volunteer
[GET] Volunteer-Tag: List all Tags Assigned to a Volunteer
[DELETE] Volunteer-Tag: Remove a Tag From a Volunteer
Issues
Closes #24