72 lines
1.4 KiB
PHP
Raw Normal View History

2016-07-12 00:33:55 +02:00
<?php
/*
2016-12-29 12:09:26 +01:00
* This file is part of the NelmioApiDocBundle package.
2016-07-12 00:33:55 +02:00
*
2016-12-29 12:09:26 +01:00
* (c) Nelmio
2016-07-12 00:33:55 +02:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2016-12-29 12:09:26 +01:00
namespace Nelmio\ApiDocBundle\Tests\Functional\Controller;
2016-07-12 00:33:55 +02:00
2016-11-30 16:21:03 +01:00
use FOS\RestBundle\Controller\Annotations\QueryParam;
use FOS\RestBundle\Controller\Annotations\RequestParam;
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;
/**
* @Route("/api")
*/
2016-07-12 00:33:55 +02:00
class ApiController
{
/**
* @Route("/test/{user}", methods={"GET"}, schemes={"https"}, requirements={"user"="/foo/"})
*/
public function userAction()
{
}
2016-07-13 23:05:14 +02:00
2016-11-30 16:21:03 +01:00
/**
2016-11-30 16:52:13 +01:00
* @Route("/fosrest.{_format}", methods={"POST"})
2016-11-30 16:21:03 +01:00
* @QueryParam(name="foo")
* @RequestParam(name="bar")
*/
public function fosrestAction()
{
}
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()
{
}
/**
* This action is not documented. It is excluded by the config.
*
* @Route("/admin", methods={"GET"})
*/
public function adminAction()
{
}
2016-07-12 00:33:55 +02:00
}