Question: CRUDify the application Refactor the courses route to handle the same HTTP methods as the demo video / book Get All Create Get One Update

CRUDify the application
Refactor the courses route to handle the same HTTP methods as the demo video/book
Get All
Create
Get One
Update One (PUT)
Delete One
Add the catch to delete the id from the request body to libs/middlewares.js, this will require the installation and utilization of the body-parser node module
Don't forget to catch errors and return the property HTTP statuses
Create a Users model, copy from the demo/book (models/users.js)
For your this project the User will be college records staff, so each user can own multiple courses - so be sure to set up the one-to-many relationship correctly
Don't forget to delete the .sqlite file after updating the model
Create a Users route to Get One, Delete One, and Create (routes/users.js)
Test your CRUD operations with Postman
I need some help with this one I am a little stuck working through it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!