Web Entry 2.0 Rest - Generate Link EP
This commit is contained in:
davidcallizaya
2017-05-22 16:38:38 -04:00
parent a53f307644
commit c0f512891f
3 changed files with 116 additions and 0 deletions

View File

@@ -11,6 +11,9 @@ use \Luracast\Restler\RestException;
*/
class WebEntryEvent extends Api
{
/**
* @var \ProcessMaker\BusinessModel\WebEntryEvent $webEntryEvent
*/
private $webEntryEvent;
/**
@@ -140,5 +143,19 @@ class WebEntryEvent extends Api
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
}
/**
* @url GET /:prj_uid/web-entry-event/:wee_uid/generate-link
* @class AccessControl {@permission PM_FACTORY}
*
*/
public function generateLink($prj_uid, $wee_uid)
{
try {
$this->webEntryEvent->generateLink($prj_uid, $wee_uid);
} catch (\Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
}
}