/** * @url GET */ public function index($filter = null, $start = null, $limit = null) { try { $calendar = new \ProcessMaker\BusinessModel\Calendar(); $calendar->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase); $response = $calendar->getCalendars(array("filter" => $filter), null, null, $start, $limit); return $response; } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } }