It will show you how to create simple request REST API using PHP
- git clone https://github.com/dns2012/Simple-RESTFULL-API-Native-PHP.git
- Create database 'rest'.
- Import table user to database.
- Access user.php index directory Simple-RESFTFULL-API-Native-PHP.
- Use example below to access API with the HTTP method
- GET
- To get all rows http://localhost/rest/user.php
- To get row by id http://localhost/rest/user.php?id=1