/** * @url GET /:cal_uid * * @param string $cal_uid {@min 32}{@max 32} */ public function doGet($cal_uid) { try { $calendar = new \ProcessMaker\BusinessModel\Calendar(); $calendar->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase); $response = $calendar->getCalendar($cal_uid); return $response; } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } }