Simple PHP script that adds a very basic API to a MySQL database
$config = array(
"hostname"=>"localhost",
"username"=>"root",
"password"=>"root",
"database"=>"cravetivity",
"whitelist"=>false,
"blacklist"=>array("users"),
);
URL: http://localhost/api/cate*
{"categories":[["id","name"],["1","Internet"],["3","Web development"]]}
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.