Commit Graph

10 Commits

Author SHA1 Message Date
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
3390653b50 Restful feature, adding merge of class files to expose betwwen a workspace and core classes
- Now when a workspace was configured for rest service both classes on workspace and core will be
exposed merging all classes with precedence of workspace classes
2012-08-30 17:35:39 -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
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
Erik Amaru Ortiz
ffa4e578d5 PM Rest: Renaming Application to => Case class rest api 2012-08-13 18:18:46 -04:00
Erik Amaru Ortiz
9be0c008c4 PM Rest: changing passwd to password param on login method of login api class 2012-08-13 17:51:07 -04:00
Erik Amaru Ortiz
6c61e06d3b PM Rest: adding first action for GET method of application api class 2012-08-13 17:31:38 -04:00
Erik Amaru Ortiz
eb07f6a727 FEATURE: Rest support for procesmaker, stating creating pm api 2012-08-13 15:14:31 -04:00
Erik Amaru Ortiz
9b1867a410 FEATURE: First commit for ProcessMaker Rest Support
What is Functional

- Restler thirdparty library added
- Restler integration with gulliver added
- Rest requests are dispatched by sysGeneric
- Restler autodiscover for classes that implements Restler iAuthenticate interface added

What Missing

- ProcessMaker Api implemented yet
- some rest api class are in workflow/engine/services/rest/*.php
2012-08-10 16:54:12 -04:00