FIX for api.ini parsig file, alias section was updated
This commit is contained in:
@@ -34,7 +34,7 @@ class Test extends Api
|
||||
return $this->data[$id];
|
||||
}
|
||||
|
||||
throw new RestException(400, "Record not found. Record with id: $id does not exist!");
|
||||
throw new RestException(400, "GET: Record not found. Record with id: $id does not exist!");
|
||||
}
|
||||
|
||||
function post($request_data = NULL)
|
||||
@@ -78,7 +78,7 @@ class Test extends Api
|
||||
|
||||
return $this->data[$id];
|
||||
} else {
|
||||
throw new RestException(400, "Record not found. Record with id: $id does not exist!");
|
||||
throw new RestException(400, "PUT: Record not found. Record with id: $id does not exist!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ class Test extends Api
|
||||
|
||||
return $row;
|
||||
} else {
|
||||
throw new RestException(400, "Record not found. Record with id: $id does not exist!");
|
||||
throw new RestException(400, "DELETE: Record not found. Record with id: $id does not exist!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ use \Luracast\Restler\RestException;
|
||||
class Test2 extends Api
|
||||
{
|
||||
|
||||
function hello()
|
||||
function hello2()
|
||||
{
|
||||
return 'GEEET ALL';
|
||||
return 'Hello #2';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
14
workflow/engine/src/Services/Api/ProcessMaker/Test3.php
Normal file
14
workflow/engine/src/Services/Api/ProcessMaker/Test3.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Services\Api\ProcessMaker;
|
||||
|
||||
use \ProcessMaker\Api;
|
||||
use \Luracast\Restler\RestException;
|
||||
|
||||
class Test3 extends Api
|
||||
{
|
||||
|
||||
function hello3()
|
||||
{
|
||||
return 'Hello #3';
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,16 @@
|
||||
; API Rest Configuration File
|
||||
;
|
||||
|
||||
[alias]
|
||||
test = "Services\Api\ProcessMaker\Test2"
|
||||
project = "Services\Api\ProcessMaker\Project\Activity"
|
||||
debug = 1
|
||||
|
||||
[api]
|
||||
version = 1.0
|
||||
vendor = "ProcessMaker - Michelangelo (Enterprise)"
|
||||
|
||||
[alias: test]
|
||||
test2 = "Services\Api\ProcessMaker\Test2"
|
||||
test3 = "Services\Api\ProcessMaker\Test3"
|
||||
test4 = "Services\Api\ProcessMaker\Test4"
|
||||
|
||||
[alias: project]
|
||||
activity = "Services\Api\ProcessMaker\Project\Activity"
|
||||
|
||||
Reference in New Issue
Block a user