<?php /* * This file is part of the ApiDocBundle package. * * (c) EXSyst * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace EXSyst\Bundle\ApiDocBundle\Tests\Functional\Controller; use Nelmio\ApiDocBundle\Annotation\ApiDoc; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; /** * @Route("/api") */ class ApiController { /** * @Route("/test/{user}", methods={"GET"}, schemes={"https"}, requirements={"user"="/foo/"}) */ public function userAction() { } /** * @Route("/nelmio/{foo}", methods={"POST"}) * @ApiDoc( * description="This action is described." * ) */ public function nelmioAction() { } /** * This action is deprecated. * * Please do not use this action. * * @Route("/deprecated", methods={"GET"}) * * @deprecated */ public function deprecatedAction() { } /** * This action is not documented. It is excluded by the config. * * @Route("/admin", methods={"GET"}) */ public function adminAction() { } }