Skip to content

billal4b/php-REST-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API with PHP & MySQL

In this example i will create new_table table and create rest api of new_table.You can check response for GET, POST, PUT and DELETE for list, create, update and delete. So let's just follow bellow step and you will get best api platform.

 
Step 1 : Create 'new_table' table

Step 2 : create file db.php ( Connect in database )

Step 3 : create file demo_api.php  

URL (Hit to postman) :

 action : GET,   URL:http://localhost/demo_api
 
 action : POST,  URL:http://localhost/demo_api
 
 action : PUT,   URL:http://localhost/demo_api/{id}
 
 action : DELETE,URL:http://localhost/demo_api/{id}

About

REST API with PHP & MySql for mobile app or web app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages