147 Commits

Author SHA1 Message Date
Ronald Quenta
6d892e48b1 Merge remote-tracking branch 'origin/feature/HOR-3559' into feature/HOR-3629 2017-08-10 22:01:13 -04:00
davidcallizaya
21a0b9508e HOR-3626
Moved laravel boot after ProcessMaker loads its evironment constants. (PATH_DATA for shared folder)
2017-08-10 21:35:15 -04:00
Ronald Quenta
0fb5b39664 Merge remote-tracking branch 'origin/feature/HOR-3559' into feature/HOR-3629 2017-08-10 08:18:12 -04:00
Ronald Quenta
651d22a71d up observations 2017-08-08 15:47:02 -04:00
Ronald Quenta
cc5fcb08bc change 2017-08-08 15:40:50 -04:00
dev-ronald
c979a43d36 fix in login and pluginregistry 2017-08-08 15:08:45 -04:00
hjonathan
a43e3687cb remove the getLastVersion method 2017-08-08 10:16:02 -04:00
hjonathan
c5a63873b4 HOR-2933
HOR-2933-B

update
2017-08-07 11:40:32 -04:00
davidcallizaya
44d60e96d9 HOR-3620
Fix PMSystem -> PmSystem since Processmaker is one word.
2017-08-04 11:49:43 -04:00
davidcallizaya
bce594fe24 HOR-3620
+ Add missing Phing package
- Remove pending LoadInclude
2017-08-04 11:23:34 -04:00
Paula Quispe
cba358b98b Remove loads in WebApplication and sysGeneric 2017-08-04 07:03:27 -04:00
davidcallizaya
81149399da HOR-3610
Fix System class conflict.
2017-08-03 18:44:57 -04:00
Chloe Deguzman
60efcf7ac7 HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once 2017-08-03 17:19:55 -04:00
Roly Rudy Gutierrez Pinto
9257e533c2 HOR-1750 2017-04-27 12:18:35 -04:00
Ronald Henry Quenta Apaza
a40689adb1 Merged in feature/HOR-2582 (pull request #5401)
HOR-2582

Approved-by: Julio Cesar Laura Avendaño
2017-02-15 21:50:05 +00:00
qronald
d009cb462b code style 2017-02-14 17:12:38 -04:00
qronald
d8f160cfa0 up observations 2017-02-14 15:23:41 -04:00
qronald
0ed3681054 HOR-2582 2017-02-09 17:06:17 -04:00
Roly Rudy Gutierrez Pinto
1f6cac8a94 HOR-2533 2017-02-08 16:01:52 -04:00
Paula Quispe
eafb2ee56e Merged in gproly/processmaker/HOR-2197 (pull request #5191)
HOR-2197
2016-11-30 17:59:14 +00:00
qronald
4134a82cd6 HOR-2302 2016-11-28 15:29:51 -04:00
Roly Rudy Gutierrez Pinto
c5608bd76f HOR-2197 2016-11-23 17:06:18 -04:00
Paula V. Quispe
8542ce9a82 HOR-1569 2016-08-02 18:14:21 -04:00
Ronald Q
cbd486ee83 HOR-1440 Create class AccessControl to implement ACL functionality in endpoints
up observations
2016-07-18 14:31:37 -04:00
davidcallizaya
5d0fc61985 HOR-1249 Plugin's end points routes aren't generated when disabling/enabling a plugin.
c Fix routes path
c Fix Fix class loader multiple classes
c Fix plugin.singleton serialization
2016-06-10 16:22:56 -04:00
Julio Cesar Laura Avendaño
f9a8d945d8 HOR-964 2016-05-09 17:30:12 -04:00
Chloe Deguzman
2d6917178d Cleaned up some issues with xss on error pages. 2016-03-02 15:51:51 +00:00
Paula V. Quispe
84444cc00a PM-4428 2015-12-11 12:40:55 -04:00
Victor Saisa Lopez
bbd0d687bf PM-4255 "Agregar soporte de licencia para multitimezone" SOLVED
Issue:
    Agregar soporte de licencia para multitimezone
Cause:
    New feature
Solution:
    Licence validations added
2015-12-04 16:43:45 -04:00
Victor Saisa Lopez
6cd975664b PM-444 "0013316: Be able to assign users to different time zone (user's time zone)" SOLVED
Issue:
    PM-444:  0013316: Be able to assign users to different time zone
    PM-3493: Agregar soporte multiple timezone a los endpoints usando formato fecha ISO 8601
Cause:
    New feature
Solution:
    Added functionality for time zone
2015-11-26 20:11:58 -04:00
Ronald Quenta
4bfbc750f8 PM-3755 Consume the oauth/token endpoint specifying an invalid workspace, 2015-10-12 10:23:00 -04:00
Ronald Quenta
3a73a96f51 PM-3671 Process Permission>AL configurar un permiso y querer guardar nos visualiza un error 2015-09-25 16:34:54 -04:00
Ronald Quenta
bd565ce6af (BE) Endpoints must implement language as part of the header 2015-09-21 09:17:27 -04:00
Ronald Quenta
9800e71a8c Fix in Restler malformed json is valid in class JsonFormat and not valid in other class 2015-04-30 20:59:22 -04:00
Ronald Quenta
4fee4f736d Merge remote branch 'pm/master' 2015-04-30 13:21:35 -04:00
Ronald Quenta
03f783f14d malFormed json without sending 2015-04-29 17:28:37 -04:00
erik
467a241887 Fixing rest api dispatching for plugins with camelcase names
- plugin camelcase names are supported now
- fix for bug when a requests like
    GET /plugin-erik/hello/world
    GET /plugin-nonExistsPlugin/hello/world
  was resolving and dispatching the same resource
2015-04-29 16:15:57 -05:00
Erik
2534325405 last fix to avoid warnings on the core endpoints 2015-04-24 22:25:36 -05:00
Paula V. Quispe
7a8654ffc5 I added a validation when the file plugin.singleton does not exits 2015-04-21 18:53:12 -04:00
Erik
5f4bec79b0 main changes to enable register rest api endpoints from plugins
1. Enable rest api registering feature on main plugin file
  i.e, if I have a plugin named "erik", so we have a file named workflow/engine/plugins/erik.php
       and a folder workflow/engine/plugins/erik/
   - inside of setup method of plugin main class set: $this->enableRestService(true);

---- file: erik.php ----

class erikPlugin extends PMPlugin
{
  ...
  public function setup()
  {
    $this->registerMenu("processmaker", "menuerik.php");
    ...
    $this->enableRestService(true);  // <- this line enable Rest Service dispatching feature
  }
...

2. Create a folder: workflow/engine/plugins/erik/src/Services/Api/
   $ mkdir -p workflow/engine/plugins/erik/src/Services/Api/

3. Create a Restler class inside the folder created above
   i.e. creating a Hello class.

---- file: workflow/engine/plugins/erik/src/Services/Api/Hello.php -----

<?php
namespace Services\Api;
use Luracast\Restler\RestException;
use ProcessMaker\Services\Api;
use \ProcessMaker\Util;

/**
 * @protected
 */
class Hello extends Api
{
    /**
     * @url GET /world
     */
    public function world()
    {
        try {
            $hello = array(
                'message' => 'Hello world'
            );

            return $hello;
        } catch (\Exception $e) {
            throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
        }
    }
}

---------- end file ---------

4. Disable and enable the plugin named "erik" on ProcessMaker Admin Interface

5. Use the Rest Api defined inside the plugin
   you can access from a url something like that:
   format: http://<SERVER-ADDR>/api/1.0/<WORKSPACE>/plugin-<THE-PLUGIN-NAME>/hello/world

i.e.
   http://processmaker/api/1.0/workflow/plugin-erik/hello/world

Note.- to access this url that has the protected attribute into the class
       you need provide the access token into request header.
2015-04-20 22:49:51 -04:00
Victor Saisa Lopez
6a8ee66646 PM-1872 "The REST API is not handling versions" SOLVED
Issue:
    The REST API is not handling versions
Cause:
    No se esta verificando la version del API
Solution:
    Se agrego metodo para obtener y validar la version del API
2015-04-01 16:52:52 -04:00
Victor Saisa Lopez
d72e49c5ee PM-1872 "The REST API is not handling versions" SOLVED
Issue:
    The REST API is not handling versions
Cause:
    No se esta verificando la version del API
Solution:
    Se agrego metodo para obtener y validar la version del API
2015-04-01 16:47:07 -04:00
Victor Saisa Lopez
e63cad216a PM-1752 "16829 Si el workspace esta mal escrito al llamar..." SOLVED
Issue:
    16829 Si el workspace esta mal escrito al llamar a un endpoint, el estado HTTP es 503
Cause:
    No se esta creando un mensaje valido de respuesta (mensaje Restler) de error
Solution:
    Se a definido un objeto Restler para generar el error
2015-03-23 10:21:54 -04:00
Gustavo Cruz
494e1b1cd6 Removing feature folder definitively. Core integration of the Actions By Email feature complete. 2015-03-13 12:42:51 -04:00
Gustavo Cruz
280e1326e2 Adding installer compiler tags for the enterprise version of processmaker take 2 2015-03-06 10:05:03 -04:00
Gustavo Cruz
0567a58f23 Adding installer compiler tags for the enterprise version of processmaker 2015-03-06 09:16:54 -04:00
Gustavo Cruz
c808cd2867 manual merge of the upstream branch 2015-03-05 16:49:50 -04:00
root
0340a29541 fix in oauth in distinct workspace 2015-03-04 11:15:56 -04:00
Gustavo Cruz
c7208a6463 Adding more rest end points and finishing the save load configuration feature. 2015-03-02 17:42:19 -04:00
Julio Cesar Laura Avendaño
460ef5e5b0 Merged in qronald/processmaker (pull request #1545)
fix oauth2 in PM < 3 in Table rbac user
2015-02-27 15:13:24 -04:00