HOR-671 Crear un endpoint para mobile que permita verificar que el usuario sigue asignado al caso

This commit is contained in:
Ronald Q
2016-03-31 15:32:25 -04:00
parent bf3d561996
commit 7ab56a2db7

View File

@@ -715,6 +715,28 @@ class Light extends Api
return $response;
}
/**
* Get next step
*
* @param string $app_uid {@min 1}{@max 32}
* @param int $cas_index
*
* @status 204
* @url GET /case/:app_uid/:cas_index
*/
public function doIfAlreadyRoute($app_uid, $cas_index)
{
try {
$oAppDelegate = new \AppDelegation();
$alreadyRouted = $oAppDelegate->alreadyRouted($app_uid, $cas_index);
if ($alreadyRouted) {
throw (new RestException(Api::STAT_APP_EXCEPTION, G::LoadTranslation('ID_CASE_DELEGATION_ALREADY_CLOSED')));
}
} catch (\Exception $e) {
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
}
}
/**
*
* @url GET /project/:prj_uid/dynaforms