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