RESTp is an advanced RESTFul Web service developed using PHP that helps you to perform crud operation. It is build on top of the popular database abstraction script "PDOModel". It is developed using PHP and can support many different database. It supports Mysql, sqlite, pgsql and MSSQL.
What is Rest?
REST means "REpresentational State Transfer". It is an architectural style for developing web services.
REST requires that a client make a request to the server in order to retrieve or modify data on the server.
What is PDOModel?
PDOModel – Database abstraction and helper PHP class that helps to do insert,
update, delete, select operation using PDO without writing any queries and with much lesser code.
It supports Mysql, Postgres,SQlite and SQL Server database.PDOModel provides a complete solution to
perform CRUD operations on three different types of database (Mysql, Postgres and Sqlite).
For more details about PDOModel, please
click here
//init curl $ch = curl_init(); // URL to be called i.e. end point to access resource. // e.g. Get all records of a database table name "orders". curl_setopt($ch, CURLOPT_URL, "https://pdocrud.com/RESTP/api/orders/"); //return as output instead of printing it curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //execute curl request $result = curl_exec($ch); //close curl connection curl_close($ch); //print result print_r($result);
jQuery(document).ready(function () { jQuery.ajax({ url: "https://pdocrud.com/RESTP/api/orders/", success: function (response) { console.log(response); jQuery("#js_output").text(response); } }); });