This commit is contained in:
Roly Rudy Gutierrez Pinto
2015-07-09 17:21:01 -04:00
parent 39d45f744f
commit b738077ca5
3 changed files with 51 additions and 2 deletions

View File

@@ -154,6 +154,20 @@ class Project extends Api
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
}
}
/**
* @url POST /save-as
*
* @param string $prj_uid
* @param string $prj_name
* @param string $prj_description
* @param string $prj_category
*/
public function doSaveAs($prj_uid, $prj_name, $prj_description, $prj_category)
{
$importer = new \ProcessMaker\Importer\XmlImporter();
return $importer->saveAs($prj_uid, $prj_name, $prj_description, $prj_category);
}
/**
* @url GET /:prj_uid/process