PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Rafal Przetakowski   PHP REST Server Class   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP REST Server Class
REST Web service server that maps URL to API calls
Author: By
Last change: Update of README.md
Date: 2 months ago
Size: 425 bytes
 

Contents

Class file image Download

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