In this branch, I have created and tested endpoints:
POST (api/volunteer): to create a volunteer
GET (api/volunteer): to retrieve all volunteers
GET (api/volunteer/\<id>): to retrieve a specific volunteer
PUT (api/volunteer/ \<id>): to edit a volunteer's data
GET (api/volunteer/\<id>/roles): to retrieve all VolunteerRoles for one volunteer
Modifications
Created directories:
api/volunteer -> contains route.ts which contains a POST and GET; for HTTP requests regarding all volunteers in DB
api/volunteer/\<id> -> contains route.ts which contains a GET and PUT; for HTTP requests for specific volunteer in DB
api/volunteer/\<id>/roles -> contains route.ts which contains a GET; for HTTP requests for roles within specific volunteer in DB
Testing Considerations
I used the Boomerang extension to test each endpoint manually with the Mongo Dev DB and a localhost server. Additional tests can be done to confirm my results.
Developer: Xavier Garcia
Closes #9
Pull Request Summary
In this branch, I have created and tested endpoints:
Modifications
Created directories:
Testing Considerations
I used the Boomerang extension to test each endpoint manually with the Mongo Dev DB and a localhost server. Additional tests can be done to confirm my results.
Pull Request Checklist