Skip to content

Create Program & Partner Organization API Routes #25

@alexy-ok

Description

@alexy-ok

Quote

“You know the kids gon' act a fool, when you stop the programs for after school.” - Kanye West, We Don't Care

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

Notes

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

Acceptance Criteria

  • server/routes/program.js contains CRUD routes for the program table
    • Route for creating a program
    • Route for reading all programs
    • Route for reading a program
    • Route for updating a program
    • Route for deleting a program
  • server/routes/partnerOrganization.js contains CRUD routes for the partner_organization table
    • Route for creating a partner organization
    • Route for reading all partner organizations
    • Route for reading a partner organization
    • Route for updating a partner organization
    • Route for deleting a partner organization
  • Add routes to server/src/app.ts
    • programRouter for /programs
    • parterOrganizationRouter for /partners
  • 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