55 lines
1.1 KiB
PHP
Raw Normal View History

2012-04-13 14:11:54 +02:00
<?php
/*
* This file is part of the NelmioApiDocBundle.
*
* (c) Nelmio <hello@nelm.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nelmio\ApiDocBundle\Tests\Fixtures\Controller;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
2012-04-13 15:18:54 +02:00
use Symfony\Component\HttpFoundation\Response;
2012-04-13 14:11:54 +02:00
class TestController
{
/**
* @ApiDoc(
* resource=true,
* description="index action",
* filters={
* {"name"="a", "dataType"="integer"},
* {"name"="b", "dataType"="string", "arbitrary"={"arg1", "arg2"}}
* }
* )
*/
public function indexAction()
{
2012-04-13 15:18:54 +02:00
return new Response('tests');
2012-04-13 14:11:54 +02:00
}
/**
* @ApiDoc(
* description="create test",
* formType="Nelmio\ApiDocBundle\Tests\Fixtures\Form\TestType"
* )
*/
public function postTestAction()
{
}
2012-04-13 14:42:28 +02:00
public function anotherAction()
{
}
2012-04-13 15:00:46 +02:00
/**
* @ApiDoc(description="Action without HTTP verb")
*/
public function anyAction()
{
}
2012-04-13 14:11:54 +02:00
}