8 Commits

Author SHA1 Message Date
Ralph Asendeteufrer
a63689b699 BUG Rest generated php files has not descrive the data types of the fields
PROBLEM  No structure info of the table that gives enough data to handle the interface table.
SOLUTION Table structure was added in order to provide info requiered.
2012-10-08 19:16:42 -04:00
Fernando Ontiveros
215e498aa0 fixing an issue with REST-crud generator script 2012-10-04 11:54:05 -04:00
Fernando Ontiveros
0915784426 working in the REST API, rebuilding classes for all tables and fixing small errors 2012-09-24 15:09:48 -04:00
Erik Amaru Ortiz
de62be5506 Restful Feature, improvements on rest-gen cli command and Disptacher
On Dispatcher:
- Now it is handling Cross Domain AJAX request, it is accepting requests with method OPTIONS
- Now the behaviour of rest server is modified by confuguration
- The dispatcher can be load configuraion from a processmaker core dir. for all workspaces
and for a determinated workspace

On Cli Command:
- Now it can generate api crud for processmaker root dir and a determinated workspace
- More improvements to handle correctly build request for a plugin or a workspace or core of pmos
2012-08-30 16:26:19 -04:00
fernando
84b51bf05e fixing small issues with rest 2012-08-29 16:29:02 -04:00
Erik Amaru Ortiz
6e5c72d00d Restful Feature,
- made some improvements to read & generate config file
- now the rest-gen bin can be generate rest api for a plugin from a <plugin-name>/config/rest-config.ini
conf file.
- plugins should have a directory services/rest containing all rest classes, like PM structure at CORE_PATH.
2012-08-27 10:48:32 -04:00
Erik Amaru Ortiz
ce21ee6454 PM Rest Feature: added plugins support & more improvements
from a plugin a rest class can be registered now:

on setup method add the following:
---
$this->registerRestService('Sample', [optional string: $path]);
--

and create the folder   PATH_PLUGIN . /your_plugin/classes/rest

next add a class with the flowing characteristics:

<?php

class Plugin_Services_Rest_Sample
{
    public function get()
    {
        return 'hello world';
    }
}

A class prefixed with Plugin_Services_Rest_
and add the corresponding methods for a Restler api
(http://luracast.com/products/restler/)

Finally on process maker will be exposed as:

via GET: http://127.0.0.1/rest/workflow/sample
2012-08-23 13:01:19 -04:00
Erik Amaru Ortiz
612819cb75 FEATURE, PM Rest Api: Adding rest api crud generator 2012-08-20 18:33:25 -04:00