some changes to implement latest version of restler 3.0.0

This commit is contained in:
Erik Amaru Ortiz
2014-04-24 16:05:42 -04:00
parent 7eedc61feb
commit 656130d799
3 changed files with 18 additions and 5 deletions

View File

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

View File

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

View File

@@ -235,5 +235,10 @@ class Server implements iAuthenticate
{
return array_keys($this->scope);
}
public function __getWWWAuthenticateString()
{
return "";
}
}