mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-03 16:19:26 +03:00
36 lines
780 B
PHP
36 lines
780 B
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* This file is part of the NelmioApiDocBundle package.
|
||
|
*
|
||
|
* (c) Nelmio
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace Nelmio\ApiDocBundle\Tests\Functional\Controller;
|
||
|
|
||
|
use Nelmio\ApiDocBundle\Annotation\Model;
|
||
|
use Nelmio\ApiDocBundle\Tests\Functional\Entity\ArrayItemsError\Foo;
|
||
|
use Swagger\Annotations as SWG;
|
||
|
use Symfony\Component\Routing\Annotation\Route;
|
||
|
|
||
|
/**
|
||
|
* @Route(host="api.example.com")
|
||
|
*/
|
||
|
class ArrayItemsErrorController
|
||
|
{
|
||
|
/**
|
||
|
* @Route("/api/error", methods={"GET"})
|
||
|
* @SWG\Response(
|
||
|
* response=200,
|
||
|
* description="Success",
|
||
|
* @Model(type=Foo::class)
|
||
|
* )
|
||
|
*/
|
||
|
public function errorAction()
|
||
|
{
|
||
|
}
|
||
|
}
|