some changes to implement latest version of restler 3.0.0
This commit is contained in:
@@ -38,11 +38,11 @@
|
||||
}
|
||||
],
|
||||
|
||||
"minimum-stability": "beta",
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true,
|
||||
|
||||
"require": {
|
||||
"luracast/restler" : "3.0.0-RC4",
|
||||
"luracast/restler" : "3.0.0",
|
||||
"bshaffer/oauth2-server-php": "v1.0",
|
||||
"jquery/jquery": "1.10.2",
|
||||
"underscore/underscore": "1.5.2",
|
||||
|
||||
@@ -16,7 +16,10 @@ use \ProcessMaker\Util;
|
||||
*/
|
||||
class Project extends Api
|
||||
{
|
||||
public function index()
|
||||
/**
|
||||
* @url GET
|
||||
*/
|
||||
public function doGetProjects()
|
||||
{
|
||||
try {
|
||||
$start = null;
|
||||
@@ -31,10 +34,15 @@ class Project extends Api
|
||||
}
|
||||
}
|
||||
|
||||
public function get($prjUid)
|
||||
/**
|
||||
* @url GET /:prj_uid
|
||||
*
|
||||
* @param string $prj_uid {@min 32}{@max 32}
|
||||
*/
|
||||
public function doGetProject($prj_uid)
|
||||
{
|
||||
try {
|
||||
return Adapter\BpmnWorkflow::getStruct($prjUid);
|
||||
return Adapter\BpmnWorkflow::getStruct($prj_uid);
|
||||
} catch (\Exception $e) {
|
||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||
}
|
||||
|
||||
@@ -235,5 +235,10 @@ class Server implements iAuthenticate
|
||||
{
|
||||
return array_keys($this->scope);
|
||||
}
|
||||
|
||||
public function __getWWWAuthenticateString()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user