Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Build a REST API with PHP!
You have completed Build a REST API with PHP!
We're going to be adding the rest of our CRUD operations. Getting a single course, create a course, update a course and delete a course.
Before checking the solution in the next step, try to put together the Review Model with the following methods:
- getReview
- createReview
- updateReview
- deleteReview
- Finally, instead of getting ALL reviews, you'll want to getReviewsByCourseId
More CRUD!
If you would like to learn more details about CRUD operations, we have a whole course dedicated just to that! CRUD Operations with PHP
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up