2017-06-25 15:40:07 +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\JMSUser;
|
2017-12-09 21:31:56 +08:00
|
|
|
use Nelmio\ApiDocBundle\Tests\Functional\Entity\VirtualProperty;
|
2017-06-25 15:40:07 +02:00
|
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
|
|
|
use Swagger\Annotations as SWG;
|
|
|
|
|
|
|
|
class JMSController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Route("/api/jms", methods={"GET"})
|
|
|
|
* @SWG\Response(
|
|
|
|
* response=200,
|
|
|
|
* description="Success",
|
|
|
|
* @Model(type=JMSUser::class)
|
|
|
|
* )
|
|
|
|
*/
|
|
|
|
public function userAction()
|
|
|
|
{
|
|
|
|
}
|
2017-12-09 21:31:56 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @Route("/api/yaml", methods={"GET"})
|
|
|
|
* @SWG\Response(
|
|
|
|
* response=200,
|
|
|
|
* description="Success",
|
|
|
|
* @Model(type=VirtualProperty::class)
|
|
|
|
* )
|
|
|
|
*/
|
|
|
|
public function yamlAction()
|
|
|
|
{
|
|
|
|
}
|
2017-06-25 15:40:07 +02:00
|
|
|
}
|