/** * @Route("/get_short_info/{authorId}", requirements={"authorId" = "\d+"}) * @Method({"GET"}) * * @param $authorId * * @return array */ public function getShortInfoAction($authorId) { $result = $this->service->getShortInfo($authorId); return $result; }