/**
  * {@inheritdoc}
  */
 public function parse(array $item)
 {
     $type = $item['class'];
     $options = $item['options'];
     try {
         $form = $this->formFactory->create($type, null, $options);
     } catch (\Exception $exception) {
         if (!LegacyFormHelper::isLegacy()) {
             @trigger_error('Using FormTypeInterface instance with required arguments without defining them as service is deprecated in symfony 2.8 and removed in 3.0.', E_USER_DEPRECATED);
         }
     }
     if (!isset($form)) {
         if (!LegacyFormHelper::hasBCBreaks() && $this->implementsType($type)) {
             $type = $this->getTypeInstance($type);
             $form = $this->formFactory->create($type, null, $options);
         } else {
             throw new \InvalidArgumentException('Unsupported form type class.');
         }
     }
     $name = array_key_exists('name', $item) ? $item['name'] : (method_exists($form, 'getBlockPrefix') ? $form->getBlockPrefix() : $form->getName());
     if (empty($name)) {
         return $this->parseForm($form);
     }
     $subType = is_object($type) ? get_class($type) : $type;
     if (class_exists($subType)) {
         $parts = explode('\\', $subType);
         $dataType = sprintf('object (%s)', end($parts));
     } else {
         $dataType = sprintf('object (%s)', $subType);
     }
     return array($name => array('required' => true, 'readonly' => false, 'description' => '', 'default' => null, 'dataType' => $dataType, 'actualType' => DataTypes::MODEL, 'subType' => $subType, 'children' => $this->parseForm($form)));
 }
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $choiceType = LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType');
     $datetimeType = LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType');
     $dateType = LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType');
     $builder->add('dt1', $datetimeType, array('widget' => 'single_text', 'description' => 'A nice description'))->add('dt2', $datetimeType, array('date_format' => 'M/d/y'))->add('dt3', $datetimeType, array('widget' => 'single_text', 'format' => 'M/d/y H:i:s'))->add('dt4', $datetimeType, array('date_format' => \IntlDateFormatter::MEDIUM))->add('dt5', $datetimeType, array('format' => 'M/d/y H:i:s'))->add('d1', $dateType, array('format' => \IntlDateFormatter::MEDIUM))->add('d2', $dateType, array('format' => 'd-M-y'))->add('c1', $choiceType, array_merge(array('choices' => array('m' => 'Male', 'f' => 'Female')), LegacyFormHelper::isLegacy() ? array() : array('choices_as_values' => true)))->add('c2', $choiceType, array_merge(array('choices' => array('m' => 'Male', 'f' => 'Female'), 'multiple' => true), LegacyFormHelper::isLegacy() ? array() : array('choices_as_values' => true)))->add('c3', $choiceType, array('choices' => array()))->add('c4', $choiceType, array_merge(array('choices' => array('foo' => 'bar', 'bazgroup' => array('baz' => 'Buzz'))), LegacyFormHelper::isLegacy() ? array() : array('choices_as_values' => true)))->add('e1', LegacyFormHelper::isLegacy() ? new EntityType() : __NAMESPACE__ . '\\EntityType', LegacyFormHelper::isLegacy() ? array('choice_list' => new SimpleChoiceList(array('foo' => 'bar', 'bazgroup' => array('baz' => 'Buzz')))) : array('choices' => array('foo' => 'bar', 'bazgroup' => array('baz' => 'Buzz')), 'choices_as_values' => true));
 }
 public function testFormat()
 {
     $container = $this->getContainer();
     $extractor = $container->get('nelmio_api_doc.extractor.api_doc_extractor');
     set_error_handler(array($this, 'handleDeprecation'));
     $data = $extractor->all();
     restore_error_handler();
     $result = $container->get('nelmio_api_doc.formatter.markdown_formatter')->format($data);
     $suffix = class_exists('Dunglas\\ApiBundle\\DunglasApiBundle') ? '' : '-no-dunglas';
     $expected = file_get_contents(__DIR__ . '/testFormat-result' . $suffix . '.markdown');
     if (LegacyFormHelper::isLegacy()) {
         $expected = str_replace('DependencyType', 'dependency_type', $expected);
     }
     $this->assertEquals($expected, $result . "\n");
 }
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $collectionType = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType';
     $builder->add('a', LegacyFormHelper::getType($collectionType), array(LegacyFormHelper::hasBCBreaks() ? 'entry_type' : 'type' => LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType')))->add('b', LegacyFormHelper::getType($collectionType), array(LegacyFormHelper::hasBCBreaks() ? 'entry_type' : 'type' => LegacyFormHelper::isLegacy() ? new TestType() : __NAMESPACE__ . '\\TestType'));
 }
Esempio n. 5
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('sub_form', LegacyFormHelper::isLegacy() ? new SimpleType() : __NAMESPACE__ . '\\SimpleType')->add('a', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType'));
 }
Esempio n. 6
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('a', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType'), array('description' => 'Something that describes A.'))->add('b', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType'))->add('c', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType'), array_merge(array('choices' => array('x' => 'X', 'y' => 'Y', 'z' => 'Z')), LegacyFormHelper::isLegacy() ? array() : array('choices_as_values' => true)))->add('d', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType'))->add('e', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType'))->add('g', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\TextareaType'));
 }
 protected function expectedData($entityToChoice)
 {
     $entityData = array_merge(array('dataType' => 'choice', 'actualType' => DataTypes::ENUM, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), LegacyFormHelper::isLegacy() ? array() : array('format' => '{"foo":"bar","bazgroup":{"baz":"Buzz"}}'));
     return array(array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\TestType', 'options' => array()), array('a' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'required' => true, 'description' => 'A nice description', 'readonly' => false, 'default' => null), 'b' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'required' => true, 'description' => '', 'readonly' => false, 'default' => null), 'c' => array('dataType' => 'boolean', 'actualType' => DataTypes::BOOLEAN, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'd' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'required' => true, 'description' => '', 'readonly' => false, 'default' => "DefaultTest"))), array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\CollectionType', 'options' => array()), array('collection_type' => array('dataType' => 'object (CollectionType)', 'actualType' => DataTypes::MODEL, 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\CollectionType', 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'children' => array('a' => array('dataType' => 'array of strings', 'actualType' => DataTypes::COLLECTION, 'subType' => DataTypes::STRING, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'b' => array('dataType' => 'array of objects (TestType)', 'actualType' => DataTypes::COLLECTION, 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\TestType', 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'children' => array('a' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'default' => null, 'subType' => null, 'required' => true, 'description' => 'A nice description', 'readonly' => false), 'b' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'default' => null, 'subType' => null, 'required' => true, 'description' => '', 'readonly' => false), 'c' => array('dataType' => 'boolean', 'actualType' => DataTypes::BOOLEAN, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'd' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'required' => true, 'description' => '', 'readonly' => false, 'default' => "DefaultTest"))))))), array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\CollectionType', 'name' => '', 'options' => array()), array('a' => array('dataType' => 'array of strings', 'actualType' => DataTypes::COLLECTION, 'subType' => DataTypes::STRING, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'b' => array('dataType' => 'array of objects (TestType)', 'actualType' => DataTypes::COLLECTION, 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\TestType', 'required' => true, 'description' => '', 'default' => null, 'readonly' => false, 'children' => array('a' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'default' => null, 'required' => true, 'description' => 'A nice description', 'readonly' => false), 'b' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'c' => array('dataType' => 'boolean', 'actualType' => DataTypes::BOOLEAN, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'd' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'required' => true, 'description' => '', 'readonly' => false, 'default' => "DefaultTest"))))), array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\CollectionType', 'name' => null, 'options' => array()), array('a' => array('dataType' => 'array of strings', 'actualType' => DataTypes::COLLECTION, 'subType' => DataTypes::STRING, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'b' => array('dataType' => 'array of objects (TestType)', 'actualType' => DataTypes::COLLECTION, 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\TestType', 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'children' => array('a' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'default' => null, 'required' => true, 'description' => 'A nice description', 'readonly' => false), 'b' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'c' => array('dataType' => 'boolean', 'actualType' => DataTypes::BOOLEAN, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'd' => array('dataType' => 'string', 'actualType' => DataTypes::STRING, 'subType' => null, 'default' => "DefaultTest", 'required' => true, 'description' => '', 'readonly' => false))))), array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\ImprovedTestType', 'options' => array()), array('dt1' => array('dataType' => 'datetime', 'actualType' => DataTypes::DATETIME, 'subType' => null, 'default' => null, 'required' => true, 'description' => 'A nice description', 'readonly' => false, 'format' => DateTimeType::HTML5_FORMAT), 'dt2' => array('dataType' => 'datetime', 'actualType' => DataTypes::DATETIME, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'format' => 'M/d/y'), 'dt3' => array('dataType' => 'datetime', 'actualType' => DataTypes::DATETIME, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'format' => 'M/d/y H:i:s'), 'dt4' => array('dataType' => 'datetime', 'actualType' => DataTypes::DATETIME, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'dt5' => array('dataType' => 'datetime', 'actualType' => DataTypes::DATETIME, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'd1' => array('dataType' => 'date', 'actualType' => DataTypes::DATE, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'd2' => array('dataType' => 'date', 'actualType' => DataTypes::DATE, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'format' => 'd-M-y'), 'c1' => array('dataType' => 'choice', 'actualType' => DataTypes::ENUM, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'format' => json_encode(array('m' => 'Male', 'f' => 'Female'))), 'c2' => array('dataType' => 'array of choices', 'actualType' => DataTypes::COLLECTION, 'subType' => DataTypes::ENUM, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'format' => json_encode(array('m' => 'Male', 'f' => 'Female'))), 'c3' => array('dataType' => 'choice', 'actualType' => DataTypes::ENUM, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'c4' => array('dataType' => 'choice', 'actualType' => DataTypes::ENUM, 'subType' => null, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'format' => '{"foo":"bar","bazgroup":{"baz":"Buzz"}}'), 'e1' => $entityData)), array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\CompoundType', 'options' => array()), array('sub_form' => array('dataType' => 'object (SimpleType)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\SimpleType', 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'children' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => null, 'required' => true, 'description' => 'Something that describes A.', 'readonly' => false), 'b' => array('dataType' => 'float', 'actualType' => 'float', 'subType' => NULL, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'c' => array('dataType' => 'choice', 'actualType' => 'choice', 'subType' => NULL, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false, 'format' => '{"x":"X","y":"Y","z":"Z"}'), 'd' => array('dataType' => 'datetime', 'actualType' => 'datetime', 'subType' => NULL, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'e' => array('dataType' => 'date', 'actualType' => 'date', 'subType' => NULL, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false), 'g' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false))), 'a' => array('dataType' => 'float', 'actualType' => 'float', 'subType' => NULL, 'default' => null, 'required' => true, 'description' => '', 'readonly' => false))), array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\RequireConstructionType', 'options' => array()), array('require_construction_type' => array('dataType' => 'object (RequireConstructionType)', 'required' => true, 'description' => '', 'readonly' => false, 'default' => null, 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\RequireConstructionType', 'children' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => null, 'default' => null, 'required' => true, 'description' => 'A nice description', 'readonly' => false))))), array(array('class' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\DependencyType', 'options' => array()), array('dependency_type' => array('dataType' => 'object (DependencyType)', 'required' => true, 'description' => '', 'readonly' => false, 'default' => null, 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\DependencyType', 'children' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => null, 'default' => null, 'required' => true, 'description' => 'A nice description', 'readonly' => false))))));
 }
<?php

use Nelmio\ApiDocBundle\Util\LegacyFormHelper;
return array('/api/other-resources' => array(0 => array('method' => 'GET', 'uri' => '/api/other-resources.{_format}', 'description' => 'List another resource.', 'requirements' => array('_format' => array('requirement' => 'json|xml|html', 'dataType' => '', 'description' => '')), 'response' => array('' => array('dataType' => 'array of objects (JmsTest)', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsTest', 'actualType' => 'collection', 'readonly' => true, 'required' => true, 'default' => true, 'description' => '', 'children' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => 'baz', 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'baz' => array('dataType' => 'array of integers', 'actualType' => 'collection', 'subType' => 'integer', 'required' => false, 'default' => NULL, 'description' => 'Epic description.

With multiple lines.', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'circular' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'parent' => array('dataType' => 'object (JmsTest)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsTest', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL))), 'since' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.2', 'untilVersion' => NULL), 'until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => '0.3'), 'since_and_until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.4', 'untilVersion' => '0.5'))), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL)))), 'resourceDescription' => 'Operations on another resource.', 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('default', 'premium')), 1 => array('method' => 'PUT|PATCH', 'uri' => '/api/other-resources/{id}.{_format}', 'description' => 'Update a resource bu ID.', 'requirements' => array('_format' => array('requirement' => 'json|xml|html', 'dataType' => '', 'description' => ''), 'id' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false)), '/api/resources' => array(0 => array('method' => 'GET', 'uri' => '/api/resources.{_format}', 'description' => 'List resources.', 'requirements' => array('_format' => array('requirement' => 'json|xml|html', 'dataType' => '', 'description' => '')), 'response' => array('tests' => array('dataType' => 'array of objects (Test)', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\Test', 'actualType' => 'collection', 'readonly' => true, 'required' => true, 'default' => true, 'description' => '', 'children' => array('a' => array('default' => 'nelmio', 'actualType' => 'string', 'subType' => NULL, 'format' => '{length: min: foo}, {not blank}', 'required' => true, 'dataType' => 'string', 'readonly' => NULL), 'b' => array('default' => NULL, 'actualType' => 'datetime', 'subType' => NULL, 'dataType' => 'DateTime', 'readonly' => NULL, 'required' => NULL)))), 'statusCodes' => array(200 => array(0 => 'Returned on success.'), 404 => array(0 => 'Returned if resource cannot be found.')), 'resourceDescription' => 'Operations on resource.', 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('test', 'premium', 'default')), 1 => array('method' => 'POST', 'uri' => '/api/resources.{_format}', 'description' => 'Create a new resource.', 'parameters' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => 'Something that describes A.', 'readonly' => false), 'b' => array('dataType' => 'float', 'actualType' => 'float', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => NULL, 'readonly' => false), 'c' => array('dataType' => 'choice', 'actualType' => 'choice', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => NULL, 'readonly' => false, 'format' => '{"x":"X","y":"Y","z":"Z"}'), 'd' => array('dataType' => 'datetime', 'actualType' => 'datetime', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => NULL, 'readonly' => false), 'e' => array('dataType' => 'date', 'actualType' => 'date', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => NULL, 'readonly' => false), 'g' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => NULL, 'readonly' => false)), 'requirements' => array('_format' => array('requirement' => 'json|xml|html', 'dataType' => '', 'description' => '')), 'response' => array('foo' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => 'baz', 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'baz' => array('dataType' => 'array of integers', 'actualType' => 'collection', 'subType' => 'integer', 'required' => false, 'default' => NULL, 'description' => 'Epic description.

With multiple lines.', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'circular' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => 'baz', 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'baz' => array('dataType' => 'array of integers', 'actualType' => 'collection', 'subType' => 'integer', 'required' => false, 'default' => NULL, 'description' => 'Epic description.

With multiple lines.', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'circular' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'parent' => array('dataType' => 'object (JmsTest)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsTest', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL))), 'since' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.2', 'untilVersion' => NULL), 'until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => '0.3'), 'since_and_until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.4', 'untilVersion' => '0.5'))), 'parent' => array('dataType' => 'object (JmsTest)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsTest', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL))), 'since' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.2', 'untilVersion' => NULL), 'until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => '0.3'), 'since_and_until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.4', 'untilVersion' => '0.5')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('default', 'premium')), 2 => array('method' => 'DELETE', 'uri' => '/api/resources/{id}.{_format}', 'description' => 'Delete a resource by ID.', 'requirements' => array('_format' => array('requirement' => 'json|xml|html', 'dataType' => '', 'description' => ''), 'id' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 3 => array('method' => 'GET', 'uri' => '/api/resources/{id}.{_format}', 'description' => 'Retrieve a resource by ID.', 'requirements' => array('_format' => array('requirement' => 'json|xml|html', 'dataType' => '', 'description' => ''), 'id' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false)), '/tests' => array(0 => array('method' => 'GET', 'uri' => '/tests.{_format}', 'description' => 'index action', 'filters' => array('a' => array('dataType' => 'integer'), 'b' => array('dataType' => 'string', 'arbitrary' => array(0 => 'arg1', 1 => 'arg2'))), 'requirements' => array('_format' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 1 => array('method' => 'GET', 'uri' => '/tests.{_format}', 'description' => 'index action', 'filters' => array('a' => array('dataType' => 'integer'), 'b' => array('dataType' => 'string', 'arbitrary' => array(0 => 'arg1', 1 => 'arg2'))), 'requirements' => array('_format' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 2 => array('method' => 'POST', 'uri' => '/tests.{_format}', 'host' => 'api.test.dev', 'description' => 'create test', 'parameters' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => 'A nice description', 'readonly' => false), 'b' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => false, 'description' => NULL, 'readonly' => false), 'c' => array('dataType' => 'boolean', 'actualType' => 'boolean', 'subType' => NULL, 'default' => false, 'required' => true, 'description' => NULL, 'readonly' => false), 'd' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => 'DefaultTest', 'required' => true, 'description' => NULL, 'readonly' => false)), 'requirements' => array('_format' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('default', 'premium')), 3 => array('method' => 'POST', 'uri' => '/tests.{_format}', 'host' => 'api.test.dev', 'description' => 'create test', 'parameters' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => 'A nice description', 'readonly' => false), 'b' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => false, 'description' => NULL, 'readonly' => false), 'c' => array('dataType' => 'boolean', 'actualType' => 'boolean', 'subType' => NULL, 'default' => false, 'required' => true, 'description' => NULL, 'readonly' => false), 'd' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => 'DefaultTest', 'required' => true, 'description' => NULL, 'readonly' => false)), 'requirements' => array('_format' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('default', 'premium'))), '/tests2' => array(0 => array('method' => 'POST', 'uri' => '/tests2.{_format}', 'description' => 'post test 2', 'requirements' => array('_format' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('default', 'premium'))), 'TestResource' => array(0 => array('method' => 'ANY', 'uri' => '/named-resource', 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('default'))), 'others' => array(0 => array('method' => 'POST', 'uri' => '/another-post', 'description' => 'create another test', 'parameters' => array('dependency_type' => array('required' => true, 'readonly' => false, 'description' => '', 'default' => NULL, 'dataType' => 'object (' . (LegacyFormHelper::isLegacy() ? 'dependency_type' : 'DependencyType') . ')', 'actualType' => 'model', 'subType' => LegacyFormHelper::isLegacy() ? 'dependency_type' : 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\DependencyType', 'children' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => 'A nice description', 'readonly' => false)))), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'views' => array('default', 'test')), 1 => array('method' => 'ANY', 'uri' => '/any', 'description' => 'Action without HTTP verb', 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 2 => array('method' => 'ANY', 'uri' => '/any/{foo}', 'description' => 'Action without HTTP verb', 'requirements' => array('foo' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 3 => array('method' => 'ANY', 'uri' => '/authenticated', 'https' => false, 'authentication' => true, 'authenticationRoles' => array(0 => 'ROLE_USER', 1 => 'ROLE_FOOBAR'), 'deprecated' => false), 4 => array('method' => 'POST', 'uri' => '/jms-input-test', 'description' => 'Testing JMS', 'parameters' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => 'baz', 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'baz' => array('dataType' => 'array of integers', 'actualType' => 'collection', 'subType' => 'integer', 'required' => false, 'default' => NULL, 'description' => 'Epic description.

With multiple lines.', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'circular' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'parent' => array('dataType' => 'object (JmsTest)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsTest', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL))), 'since' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.2', 'untilVersion' => NULL), 'until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => '0.3'), 'since_and_until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.4', 'untilVersion' => '0.5'))), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL)), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 5 => array('method' => 'GET', 'uri' => '/jms-return-test', 'description' => 'Testing return', 'response' => array('dependency_type' => array('required' => true, 'readonly' => false, 'description' => '', 'default' => NULL, 'dataType' => 'object (' . (LegacyFormHelper::isLegacy() ? 'dependency_type' : 'DependencyType') . ')', 'actualType' => 'model', 'subType' => LegacyFormHelper::isLegacy() ? 'dependency_type' : 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Form\\DependencyType', 'children' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => 'A nice description', 'readonly' => false)))), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 6 => array('method' => 'ANY', 'uri' => '/my-commented/{id}/{page}/{paramType}/{param}', 'description' => 'This method is useful to test if the getDocComment works.', 'documentation' => 'This method is useful to test if the getDocComment works.
And, it supports multilines until the first \'@\' char.', 'requirements' => array('id' => array('dataType' => 'int', 'description' => 'A nice comment', 'requirement' => ''), 'page' => array('dataType' => 'int', 'description' => '', 'requirement' => ''), 'paramType' => array('dataType' => 'int', 'description' => 'The param type', 'requirement' => ''), 'param' => array('dataType' => 'int', 'description' => 'The param id', 'requirement' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 7 => array('method' => 'GET', 'uri' => '/popos', 'description' => 'Retrieves the collection of Popo resources.', 'documentation' => 'Gets the collection.', 'response' => array('foo' => array('required' => false, 'description' => '', 'readonly' => false, 'dataType' => 'string')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'resourceDescription' => 'Popo', 'section' => 'Popo'), 8 => array('method' => 'POST', 'uri' => '/popos', 'description' => 'Creates a Popo resource.', 'documentation' => 'Adds an element to the collection.', 'parameters' => array('foo' => array('required' => false, 'description' => '', 'readonly' => false, 'dataType' => 'string')), 'response' => array('foo' => array('required' => false, 'description' => '', 'readonly' => false, 'dataType' => 'string')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'resourceDescription' => 'Popo', 'section' => 'Popo'), 9 => array('method' => 'DELETE', 'uri' => '/popos/{id}', 'description' => 'Deletes the Popo resource.', 'documentation' => 'Deletes an element of the collection.', 'requirements' => array('id' => array('dataType' => 'string', 'description' => '', 'requirement' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'resourceDescription' => 'Popo', 'section' => 'Popo'), 10 => array('method' => 'GET', 'uri' => '/popos/{id}', 'description' => 'Retrieves Popo resource.', 'documentation' => 'Gets an element of the collection.', 'requirements' => array('id' => array('dataType' => 'int', 'description' => '', 'requirement' => '')), 'response' => array('foo' => array('required' => false, 'description' => '', 'readonly' => false, 'dataType' => 'string')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'resourceDescription' => 'Popo', 'section' => 'Popo'), 11 => array('method' => 'PUT', 'uri' => '/popos/{id}', 'description' => 'Replaces the Popo resource.', 'documentation' => 'Replaces an element of the collection.', 'parameters' => array('foo' => array('required' => false, 'description' => '', 'readonly' => false, 'dataType' => 'string')), 'requirements' => array('id' => array('dataType' => 'string', 'description' => '', 'requirement' => '')), 'response' => array('foo' => array('required' => false, 'description' => '', 'readonly' => false, 'dataType' => 'string')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false, 'resourceDescription' => 'Popo', 'section' => 'Popo'), 12 => array('method' => 'ANY', 'uri' => '/return-nested-output', 'response' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => 'baz', 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'baz' => array('dataType' => 'array of integers', 'actualType' => 'collection', 'subType' => 'integer', 'required' => false, 'default' => NULL, 'description' => 'Epic description.

With multiple lines.', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'circular' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'parent' => array('dataType' => 'object (JmsTest)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsTest', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('foo' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'bar' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => true, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'number' => array('dataType' => 'double', 'actualType' => 'float', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'arr' => array('dataType' => 'array', 'actualType' => 'collection', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested' => array('dataType' => 'object (JmsNested)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL))), 'since' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.2', 'untilVersion' => NULL), 'until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => '0.3'), 'since_and_until' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => '0.4', 'untilVersion' => '0.5'))), 'nested_array' => array('dataType' => 'array of objects (JmsNested)', 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\JmsNested', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL)), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 13 => array('method' => 'GET', 'uri' => '/route_with_host.{_format}', 'host' => 'api.test.dev', 'description' => 'Route with host placeholder', 'requirements' => array('domain' => array('requirement' => 'test.dev|test.com', 'dataType' => '', 'description' => ''), '_format' => array('requirement' => '', 'dataType' => '', 'description' => '')), 'views' => array(0 => 'default'), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 14 => array('method' => 'ANY', 'uri' => '/secure-route', 'https' => true, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 15 => array('method' => 'ANY', 'uri' => '/yet-another/{id}', 'requirements' => array('id' => array('requirement' => '\\d+', 'dataType' => '', 'description' => '')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 16 => array('method' => 'GET', 'uri' => '/z-action-with-deprecated-indicator', 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => true), 17 => array('method' => 'POST', 'uri' => '/z-action-with-nullable-request-param', 'parameters' => array('param1' => array('required' => false, 'dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'description' => 'Param1 description.', 'readonly' => false)), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 18 => array('method' => 'GET', 'uri' => '/z-action-with-query-param', 'filters' => array('page' => array('requirement' => '\\d+', 'description' => 'Page of the overview.', 'default' => '1')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 19 => array('method' => 'GET', 'uri' => '/z-action-with-query-param-no-default', 'filters' => array('page' => array('requirement' => '\\d+', 'description' => 'Page of the overview.')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 20 => array('method' => 'GET', 'uri' => '/z-action-with-query-param-strict', 'requirements' => array('page' => array('requirement' => '\\d+', 'dataType' => '', 'description' => 'Page of the overview.')), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 21 => array('method' => 'POST', 'uri' => '/z-action-with-request-param', 'parameters' => array('param1' => array('required' => true, 'dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'description' => 'Param1 description.', 'readonly' => false)), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 22 => array('method' => 'ANY', 'uri' => '/z-return-jms-and-validator-output', 'response' => array('bar' => array('default' => NULL, 'actualType' => 'datetime', 'subType' => NULL, 'dataType' => 'DateTime', 'readonly' => NULL, 'required' => NULL), 'objects' => array('default' => NULL, 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\Test', 'dataType' => 'array of objects (Test)', 'children' => array('a' => array('default' => 'nelmio', 'actualType' => 'string', 'subType' => NULL, 'format' => '{length: min: foo}, {not blank}', 'required' => true, 'dataType' => 'string', 'readonly' => NULL), 'b' => array('default' => NULL, 'actualType' => 'datetime', 'subType' => NULL, 'dataType' => 'DateTime', 'readonly' => NULL, 'required' => NULL)), 'readonly' => NULL, 'required' => NULL), 'number' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'related' => array('dataType' => 'object (Test)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\Test', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('a' => array('default' => 'nelmio', 'actualType' => 'string', 'subType' => NULL, 'format' => '{length: min: foo}, {not blank}', 'required' => true, 'dataType' => 'string', 'readonly' => NULL), 'b' => array('default' => NULL, 'actualType' => 'datetime', 'subType' => NULL, 'dataType' => 'DateTime', 'readonly' => NULL, 'required' => NULL)))), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 23 => array('method' => 'ANY', 'uri' => '/z-return-selected-parsers-input', 'parameters' => array('a' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => true, 'description' => 'A nice description', 'readonly' => false), 'b' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => NULL, 'required' => false, 'description' => NULL, 'readonly' => false), 'c' => array('dataType' => 'boolean', 'actualType' => 'boolean', 'subType' => NULL, 'default' => false, 'required' => true, 'description' => NULL, 'readonly' => false), 'd' => array('dataType' => 'string', 'actualType' => 'string', 'subType' => NULL, 'default' => 'DefaultTest', 'required' => true, 'description' => NULL, 'readonly' => false)), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 24 => array('method' => 'ANY', 'uri' => '/z-return-selected-parsers-output', 'response' => array('bar' => array('default' => NULL, 'actualType' => 'datetime', 'subType' => NULL, 'dataType' => 'DateTime', 'readonly' => NULL, 'required' => NULL), 'objects' => array('default' => NULL, 'actualType' => 'collection', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\Test', 'dataType' => 'array of objects (Test)', 'children' => array('a' => array('default' => 'nelmio', 'actualType' => 'string', 'subType' => NULL, 'format' => '{length: min: foo}, {not blank}', 'required' => true, 'dataType' => 'string', 'readonly' => NULL), 'b' => array('default' => NULL, 'actualType' => 'datetime', 'subType' => NULL, 'dataType' => 'DateTime', 'readonly' => NULL, 'required' => NULL)), 'readonly' => NULL, 'required' => NULL), 'number' => array('dataType' => 'DateTime', 'actualType' => 'datetime', 'subType' => NULL, 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL), 'related' => array('dataType' => 'object (Test)', 'actualType' => 'model', 'subType' => 'Nelmio\\ApiDocBundle\\Tests\\Fixtures\\Model\\Test', 'required' => false, 'default' => NULL, 'description' => '', 'readonly' => false, 'sinceVersion' => NULL, 'untilVersion' => NULL, 'children' => array('a' => array('default' => 'nelmio', 'actualType' => 'string', 'subType' => NULL, 'format' => '{length: min: foo}, {not blank}', 'required' => true, 'dataType' => 'string', 'readonly' => NULL), 'b' => array('default' => NULL, 'actualType' => 'datetime', 'subType' => NULL, 'dataType' => 'DateTime', 'readonly' => NULL, 'required' => NULL)))), 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 25 => array('method' => 'POST', 'uri' => '/zcached', 'cache' => 60, 'https' => false, 'authentication' => false, 'authenticationRoles' => array(), 'deprecated' => false), 26 => array('method' => 'POST', 'uri' => '/zsecured', 'https' => false, 'authentication' => true, 'authenticationRoles' => array(), 'deprecated' => false)));