# php-rest-api
This is a step by step PHP 7 & 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 7 CRUD REST API with MySQL & PHP PDO](https://www.positronx.io/create-simple-php-crud-rest-api-with-mysql-php-pdo/)

## PHP CRUD API
* `GET - http://localhost:8080/api/read.php` Fetch ALL Records
* `GET - localhost:8080/api/single_read.php/?id=2` Fetch Single Record
* `POST - http://localhost:8080/api/create.php` Create Record
* `POST - http://localhost:8080/api/update.php` Update Record
* `DELETE - localhost:8080/api/delete.php` Remove Records
