generated from ctc-uci/npo-template-merged
-
Notifications
You must be signed in to change notification settings - Fork 0
Milestone
Description
Quote
“Cross it, crack it, switch - update it.”_ - Daft Punk, Technologic
Description
- Your task is to create backend CRUD routes that will allow us to interact with our database
- CRUD stands for Create, Read, Update, Delete. Each maps to a different function for a RESTful (invented at UCI 🐜) API in Express.js: post, get, put, delete
Instructions
- Create a Express.js file with routes for interacting with the
program_updatetable - Create a Express.js file with routes for interacting with the
program_directortable
Notes
- Use the
server/routes/sample.tsas reference for new routes
Acceptance Criteria
-
server/routes/programUpdate.jscontains CRUD routes for theprogram_updatetable- Route for creating a program update
- Route for reading all program updates
- Route for reading a program update
- Route for updating a program update
- Route for deleting a program update
-
server/routes/programDirector.jscontains CRUD routes for theprogram_directortable- Route for creating a program director
- Route for reading all program directors
- Route for reading a program director
- Route for updating a program director
- Route for deleting a program director
- Add routes to
server/src/app.ts- programUpdateRouter for
/program-updates - programDirectorRouter for
/program-directors
- programUpdateRouter for
- Backend routes work, able to test using Postman/curl (Include pictures if possible)
- Be careful because routes will actually affect the database !!
Resources
- DB Model
- Refer to Sample API Route
Metadata
Metadata
Labels
No labels