/** * @param integer $id * * @ApiDoc( * description="Geoname detail", * statusCodes={200="Geoname"}, * section="Geoname") * @Route("/api/geonames/{id}") * @Route("/public-api/geonames/{id}") * @Method({"GET"}) * @return View * @Cache(maxage="+1 week", public=true) */ public function getAction($id) { $geoname = $this->geonameRepository->get($id); return $this->view(array('geoname' => $geoname)); }