This is a sample PHP project to create API using native PHP for speed development.
It has 4 files.
- Rest.inc.php - is where you define the Rest functions together with rest response code.
- conf.inc.php - is used to define your db connection and any other connection used by the API
- ht.htaccess - you need to rename the file to '.htaccess'. It is used by the webserver to manage the access on the API
- Sample.php - the filename must be the same as the name defined in '.htaccess' file.