Completed
Controller class
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Create a PHP REST API - Write a RESTful API from Scratch Using Plain, Object-Oriented PHP and MySQL
Automatically move to the next video in the Classroom when playback concludes
- 1 Introduction
- 2 API client
- 3 Front controller
- 4 RESTful endpoints
- 5 URL rewriting
- 6 HTTPie usage
- 7 Routing
- 8 404 response
- 9 Collection and resource URLs
- 10 Controller class
- 11 Class autoloading
- 12 Process the request
- 13 Collection requests
- 14 JSON Content-type
- 15 Create the database
- 16 Connect to the DB
- 17 Exception handling
- 18 Table gateway class
- 19 List all records
- 20 Encode JSON values
- 21 Insert a record
- 22 Get request data
- 23 201 response
- 24 Error handling
- 25 Data validation
- 26 422 response
- 27 405 response
- 28 Resource requests
- 29 Get a resource
- 30 404 response
- 31 Update a resource
- 32 Conditional validation
- 33 Delete a resource
- 34 Summary