![]() |
10 years ago | |
---|---|---|
.gitignore | 10 years ago | |
.htaccess | 10 years ago | |
README.md | 10 years ago | |
api.php | 10 years ago | |
config.php.dist | 10 years ago |
Simple PHP script that adds a very basic API to a MySQL database
URL: http://localhost/api/cate*
{"categories":[["id","name"],["1","Internet \/ Technology"],["3","Web development \/ Programming"]]}
Put the files in a folder and edit config.php.dist and rename it to config.php. Let Apache serve the folder and configure the .htaccess RewriteBase to match the exposed part of the path.