Adding DELETE /project/{prj_uid}, is working, and more changes for PUT method

This commit is contained in:
Erik Amaru Ortiz
2014-01-24 17:55:42 -04:00
parent 7a2f0531f7
commit 72fbe36660
7 changed files with 333 additions and 11 deletions

View File

@@ -162,6 +162,18 @@ class Project extends Api
}
}
public function delete($prjUid)
{
try {
$process = new \BusinessModel\Process();
$process->deleteProcess($prjUid);
BpmnModel::deleteProject($prjUid);
} catch (\Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
}
/**
* @url GET /:projectUid/dynaforms
*/