2016-07-12 00:33:55 +02:00
|
|
|
<?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;
|
|
|
|
|
2016-07-13 23:05:14 +02:00
|
|
|
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
2016-07-12 00:33:55 +02:00
|
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
|
|
|
|
|
|
|
class ApiController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Route("/test/{user}", methods={"GET"}, schemes={"https"}, requirements={"user"="/foo/"})
|
|
|
|
*/
|
|
|
|
public function userAction()
|
|
|
|
{
|
|
|
|
}
|
2016-07-13 23:05:14 +02:00
|
|
|
|
|
|
|
/**
|
2016-08-01 19:58:57 +02:00
|
|
|
* @Route("/nelmio/{foo}", methods={"POST"})
|
2016-07-13 23:05:14 +02:00
|
|
|
* @ApiDoc(
|
|
|
|
* description="This action is described."
|
|
|
|
* )
|
|
|
|
*/
|
|
|
|
public function nelmioAction()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This action is deprecated.
|
|
|
|
*
|
|
|
|
* Please do not use this action.
|
|
|
|
*
|
|
|
|
* @Route("/deprecated", methods={"GET"})
|
2016-07-14 23:52:01 +02:00
|
|
|
*
|
2016-07-13 23:05:14 +02:00
|
|
|
* @deprecated
|
|
|
|
*/
|
|
|
|
public function deprecatedAction()
|
|
|
|
{
|
|
|
|
}
|
2016-07-12 00:33:55 +02:00
|
|
|
}
|