Skip to content

Create Enrollment Change & Media Change API Endpoints #26

@alexy-ok

Description

@alexy-ok

Quote

“You're the media's creation, yeah, your free will has been taken and you don't know.” - MC Ride, Culture Shock

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

Notes

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

Acceptance Criteria

  • server/routes/enrollmentChange.js contains CRUD routes for the enrollment_change table
    • Route for creating an enrollment change
    • Route for reading all enrollment changes
    • Route for reading an enrollment change
    • Route for updating an enrollment change
    • Route for deleting an enrollment change
  • server/routes/mediaChange.js contains CRUD routes for the media_change table
    • Route for creating a media change
    • Route for reading all media changes
    • Route for reading a media change
    • Route for updating a media change
    • Route for deleting a media change
  • Add routes to server/src/app.ts
    • enrollmentChangeRouter for /enrollment-changes
    • mediaChangeRouter for /media-changes
  • 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