FIX for api.ini parsig file, alias section was updated

This commit is contained in:
Erik Amaru Ortiz
2013-12-02 16:53:08 -04:00
parent a5879e280a
commit 260bcb7e89
7 changed files with 285 additions and 218 deletions

View File

@@ -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!");
}
}

View File

@@ -7,9 +7,9 @@ use \Luracast\Restler\RestException;
class Test2 extends Api
{
function hello()
function hello2()
{
return 'GEEET ALL';
return 'Hello #2';
}
/**

View 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';
}
}

View File

@@ -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"