Create Rest API using PDO #pdo
Edit
by prashant kumar - 9 years ago (2015-10-30)
i want to create web API using PDO and json for mobile app
| i want to create Web API for ecommerce mobile APP using PDO and json. |
Ask clarification
1 Recommendation
PHP REST Server Class: REST Web service server that maps URL to API calls
This package implements a REST Web service server that maps URL to API calls.
The main class can register one or more objects that will handle API calls. Handler objects must be of classes based on the REST object class.
The main class also dispatches API calls by extracting the handler object name, API call function name and any parameters from the URL.
The return values of the REST object handler functions are returned JSON encoded as responses to the REST requests.
| by Dave Smith 7620 - 9 years ago (2015-10-30) Comment
Here is the server. You would use the example in restObjects to create your responses which you could retrieve from a database using PDO. The responses are up to you. |