Example #1
0
 /**
  * @ApiDoc(
  *   section="Service",
  *   resource=true,
  *   description="Gets incidents for a service uuid",
  *   output= {
  *       "class"="AppBundle\Entity\Core\Incident",
  *       "groups"={"list"}
  *   },
  *   statusCodes={
  *     200="Returned when successful",
  *     404="Returned when the metric is not found",
  *     401="Returned when authentication fails"
  *   }
  * )
  * @Route("/{uuid}/incidents", methods={"GET"})
  * @View(serializerGroups={"Default", "list_service_incident"})
  *
  * @param Service $service
  *
  * @return \Doctrine\Common\Collections\ArrayCollection
  */
 public function getIncidentsAction(Service $service)
 {
     return $service->getIncidents();
 }