2018-05-05 14:49:17 +02:00
|
|
|
<?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\BazingaUser;
|
2020-05-28 13:19:11 +02:00
|
|
|
use OpenApi\Annotations as OA;
|
2019-11-19 18:24:58 +01:00
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
2018-05-05 14:49:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @Route(host="api.example.com")
|
|
|
|
*/
|
|
|
|
class BazingaController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Route("/api/bazinga", methods={"GET"})
|
2020-05-28 13:19:11 +02:00
|
|
|
* @OA\Response(
|
2018-05-05 14:49:17 +02:00
|
|
|
* response=200,
|
|
|
|
* description="Success",
|
|
|
|
* @Model(type=BazingaUser::class)
|
|
|
|
* )
|
|
|
|
*/
|
|
|
|
public function userAction()
|
|
|
|
{
|
|
|
|
}
|
2019-05-02 10:02:16 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @Route("/api/bazinga_foo", methods={"GET"})
|
2020-05-28 13:19:11 +02:00
|
|
|
* @OA\Response(
|
2019-05-02 10:02:16 +02:00
|
|
|
* response=200,
|
|
|
|
* description="Success",
|
|
|
|
* @Model(type=BazingaUser::class, groups={"foo"})
|
|
|
|
* )
|
|
|
|
*/
|
|
|
|
public function userGroupAction()
|
|
|
|
{
|
|
|
|
}
|
2018-05-05 14:49:17 +02:00
|
|
|
}
|