Commit Graph

72 Commits

Author SHA1 Message Date
dev-ronald
c979a43d36 fix in login and pluginregistry 2017-08-08 15:08:45 -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
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
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
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
Ronald Quenta
593c5784ed fix oauth2 in PM < 3 in Table rbac user 2015-02-27 14:11:43 -04:00
Gustavo Cruz
077033adca Moving the Features folder again in order to ensure compatibility with the namespaces convention 2015-02-24 18:14:41 -04:00
Gustavo Cruz
c7a7736edf Moving features folders, enabling the ActionsByEmail rest api endpoints 2015-02-19 17:54:54 -04:00
Gustavo Cruz
382d1a57a9 Renaming issues fixed, and also adding the Rest API class for the ActionsByEmail Enterprise Feature 2015-02-18 17:31:53 -04:00
eriknyk
da305cc7ef little fix for OAuth2 docs 2014-10-06 08:50:13 -04:00
Luis Fernando Saisa Lopez
24f24dbf39 BUG 357 "PHP Notice en pm3." SOLVED
- PHP Notice en pm3.
- Problema resuelto, se mejora la validacion existente donde se producia el error en el metodo "route" del
  archivo "WebApplication.php".

  Disponible para la version 2.8 de ProcessMaker.
2014-10-02 17:27:26 -04:00
eriknyk
80083ffff4 Fix on REST bootstrap for new endpoint: /<workspace>/oauth2/token and others like that
- problem with rest classes cache was found
  just because, now we have two url patterns
      1. /api/1.0/<workspace>/xxxxxxxx
      2. /<workspace>/oauth2/xxxxxxxx
  restler was generating two different cache class maps, for both patterns,
  so the first one request was overwriting to other.

** IT IS FIXED NOW
2014-09-23 15:18:22 -04:00
eriknyk
427f0e5243 FIX for multiple request to Rest API 2014-08-22 13:33:58 -04:00
eriknyk
c108ea8678 Improvement for OAuth2 Server. Implicit, Resource Owner Password and Client Credentials were added, and refactoring of oauth2 endpoints 2014-08-20 11:36:20 -04:00
Erik Amaru Ortiz
52ad38572c solving problem using API REST request using multipart 2014-07-09 11:22:21 -04:00
Erik Amaru Ortiz
c1f8fdae2a Solving problem with multipart request. 2014-07-08 16:01:19 -04:00
Erik Amaru Ortiz
0bd9df876e Improving and Refactoring some task to dispatch multipart request on REST API Dispatching routine (update 2) 2014-07-08 11:41:38 -04:00
Erik Amaru Ortiz
a120664eea Improving and Refactoring some task to dispatch multipart request on REST API Dispatching routine (update) 2014-07-08 11:28:22 -04:00
Erik Amaru Ortiz
8cfa67ca6d Improving and Refactoring some task to dispatch multipart request on REST API Dispatching routine 2014-07-08 09:57:47 -04:00
Erik Amaru Ortiz
b5dad5386d little update on Api Rest dispatcher 2014-06-16 13:54:43 -04:00
Brayan Osmar Pereyra Suxo
a38709bea2 Correccion de bug de clases no instanciadas 2014-04-30 12:08:00 -04:00
Erik Amaru Ortiz
cb8e2b7614 BUG, Fix Circular references on rbac classes, this occurs on most new php versions. 2014-04-28 12:42:14 -04:00