7 points · by karlhadwen · 12y ago · 5 comments
Here's a little description of what's included:
PHP RESTful API with an example MySQL database. Comes with various HTTP server response mechanisms, basic HTTP authentication, pagination and rate limits. Do note this API sends a delete request using the JSON body rather than using an ID within the URI.
Feel free to reuse it as you wish.
} else if ($table=="articles") {
if (empty($data->article_id)) {
$this->data_object->send_response(400);
} else {
if ($table=="articles") {