This is a step by step PHP 8 & MySQL REST API tutorial, In this tutorial i am going to share with you how to create a PHP 7 CRUD (Create, Read, Update, Delete) RESTful API with MySQL database.
Create Simple PHP 8 CRUD REST API with MySQL & PHP PDO
GET - http://localhost:8080/api/read.phpFetch ALL RecordsGET - localhost:8080/api/single_read.php/?id=2Fetch Single RecordPOST - http://localhost:8080/api/create.phpCreate RecordPOST - http://localhost:8080/api/update.phpUpdate RecordDELETE - localhost:8080/api/delete.phpRemove Records