Skip to content

Create Program Update & Program Director API Endpoints #28

@alexy-ok

Description

@alexy-ok

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_update table
  • Create a Express.js file with routes for interacting with the program_director table

Notes

  • Use the server/routes/sample.ts as reference for new routes

Acceptance Criteria

  • server/routes/programUpdate.js contains CRUD routes for the program_update table
    • 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.js contains CRUD routes for the program_director table
    • 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
  • Backend routes work, able to test using Postman/curl (Include pictures if possible)
    • Be careful because routes will actually affect the database !!

Resources

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions