Home

Awesome

PhREST Skeleton Project

A Phalcon REST skeleton project, uses PhREST to provide a PHP REST API based on Phalcon PHP.

Config/build.yaml is used by the sdk's generator to create the: -v1/Controllers/Users/.php -v1/Exceptions/Users/.php -v1/Models/Users/.php -v1/Requests/Users/.php -v1/Responses/Users/*.php If the files already exist it will add any new functions/properties. More information can be found in bin/generator.php

Installation

Usage

This is a REST API, so it works using the following HTTP methods:

To see an example, in your browser simply request (GET) the following URLs:

GET: http://skeleton.phrest.dev/v1/users

GET: http://skeleton.phrest.dev/v1/users/1

The same applies for the rest of the HTTP methods (GET, POST, PUT, DELETE).

POST: http://skeleton.phrest.dev/v1/users

PUT: http://skeleton.phrest.dev/v1/users/1

DELETE: http://skeleton.phrest.dev/v1/users/1