Пример #1
0
 /**
  * GET list category
  *
  * @return array
  * @throws RestException
  *
  * @url GET /category
  */
 public function getCategoryList()
 {
     try {
         $oLight = new \ProcessMaker\BusinessModel\Light();
         $category = $oLight->getCategoryList();
     } catch (\Exception $e) {
         throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
     }
     return $category;
 }