Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-01-09 (3 days ago) | | 68% | | Total: 1,508 This week: 6 | | All time: 2,596 This week: 43 |
|
Description | | Author |
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. | |
|
Recommendations
Details
It is a complete simple rest server. To use it, copy files into a document root directory.
Then you can use your browser:
http://yourserver.com/rest/User/example
or bash:
$ curl -u username:password -X POST http://yourserver.com/rest/User/login
URL parts:
http://yourserver.com/rest/[REST OBJECT]/[REST OBJECT METHOD]/[PARAM]/[PARAM]/[PARAM]
File restObjects/rest_User.php is an example how to write your rest objects
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.