mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-08 18:49:26 +03:00
Merge pull request #22 from retailcrm/remove-unused-params
Remove unused params
This commit is contained in:
commit
8135dec035
@ -125,26 +125,6 @@ class ApiDoc
|
|||||||
*/
|
*/
|
||||||
private $route;
|
private $route;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $https = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $authentication = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
private $authenticationRoles = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $cache;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
@ -272,20 +252,6 @@ class ApiDoc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data['authentication'])) {
|
|
||||||
$this->setAuthentication((bool) $data['authentication']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($data['authenticationRoles'])) {
|
|
||||||
foreach ($data['authenticationRoles'] as $key => $role) {
|
|
||||||
$this->authenticationRoles[] = $role;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($data['cache'])) {
|
|
||||||
$this->setCache($data['cache']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($data['section'])) {
|
if (isset($data['section'])) {
|
||||||
$this->section = $data['section'];
|
$this->section = $data['section'];
|
||||||
}
|
}
|
||||||
@ -308,10 +274,6 @@ class ApiDoc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data['https'])) {
|
|
||||||
$this->https = $data['https'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($data['resourceDescription'])) {
|
if (isset($data['resourceDescription'])) {
|
||||||
$this->resourceDescription = $data['resourceDescription'];
|
$this->resourceDescription = $data['resourceDescription'];
|
||||||
}
|
}
|
||||||
@ -542,70 +504,6 @@ class ApiDoc
|
|||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function getHttps()
|
|
||||||
{
|
|
||||||
return $this->https;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param bool $https
|
|
||||||
*/
|
|
||||||
public function setHttps($https): void
|
|
||||||
{
|
|
||||||
$this->https = $https;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function getAuthentication()
|
|
||||||
{
|
|
||||||
return $this->authentication;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param bool $authentication
|
|
||||||
*/
|
|
||||||
public function setAuthentication($authentication): void
|
|
||||||
{
|
|
||||||
$this->authentication = $authentication;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getAuthenticationRoles()
|
|
||||||
{
|
|
||||||
return $this->authenticationRoles;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array $authenticationRoles
|
|
||||||
*/
|
|
||||||
public function setAuthenticationRoles($authenticationRoles): void
|
|
||||||
{
|
|
||||||
$this->authenticationRoles = $authenticationRoles;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return int
|
|
||||||
*/
|
|
||||||
public function getCache()
|
|
||||||
{
|
|
||||||
return $this->cache;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param int $cache
|
|
||||||
*/
|
|
||||||
public function setCache($cache): void
|
|
||||||
{
|
|
||||||
$this->cache = (int) $cache;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
@ -738,10 +636,6 @@ class ApiDoc
|
|||||||
$data['section'] = $section;
|
$data['section'] = $section;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cache = $this->cache) {
|
|
||||||
$data['cache'] = $cache;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($tags = $this->tags) {
|
if ($tags = $this->tags) {
|
||||||
$data['tags'] = $tags;
|
$data['tags'] = $tags;
|
||||||
}
|
}
|
||||||
@ -750,9 +644,6 @@ class ApiDoc
|
|||||||
$data['resourceDescription'] = $resourceDescription;
|
$data['resourceDescription'] = $resourceDescription;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data['https'] = $this->https;
|
|
||||||
$data['authentication'] = $this->authentication;
|
|
||||||
$data['authenticationRoles'] = $this->authenticationRoles;
|
|
||||||
$data['deprecated'] = $this->deprecated;
|
$data['deprecated'] = $this->deprecated;
|
||||||
$data['scope'] = $this->scope;
|
$data['scope'] = $this->scope;
|
||||||
|
|
||||||
|
@ -477,9 +477,8 @@ class ApiDocExtractor
|
|||||||
*/
|
*/
|
||||||
protected function parseAnnotations(ApiDoc $annotation, Route $route, \ReflectionMethod $method): void
|
protected function parseAnnotations(ApiDoc $annotation, Route $route, \ReflectionMethod $method): void
|
||||||
{
|
{
|
||||||
$annots = $this->reader->getMethodAnnotations($method);
|
|
||||||
foreach ($this->handlers as $handler) {
|
foreach ($this->handlers as $handler) {
|
||||||
$handler->handle($annotation, $annots, $route, $method);
|
$handler->handle($annotation, $route, $method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class PhpDocHandler implements HandlerInterface
|
|||||||
$this->commentExtractor = $commentExtractor;
|
$this->commentExtractor = $commentExtractor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method): void
|
public function handle(ApiDoc $annotation, Route $route, \ReflectionMethod $method): void
|
||||||
{
|
{
|
||||||
// description
|
// description
|
||||||
if (null === $annotation->getDescription()) {
|
if (null === $annotation->getDescription()) {
|
||||||
@ -54,15 +54,6 @@ class PhpDocHandler implements HandlerInterface
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('_scheme' === $name) {
|
|
||||||
$https = ('https' == $value);
|
|
||||||
$annotation->setHttps($https);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (method_exists($route, 'getSchemes')) {
|
|
||||||
$annotation->setHttps(in_array('https', $route->getSchemes()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$paramDocs = [];
|
$paramDocs = [];
|
||||||
|
@ -19,5 +19,5 @@ interface HandlerInterface
|
|||||||
/**
|
/**
|
||||||
* Parse route parameters in order to populate ApiDoc.
|
* Parse route parameters in order to populate ApiDoc.
|
||||||
*/
|
*/
|
||||||
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method);
|
public function handle(ApiDoc $annotation, Route $route, \ReflectionMethod $method);
|
||||||
}
|
}
|
||||||
|
@ -65,8 +65,6 @@ The following properties are available:
|
|||||||
* ``resource``: whether the method describes a main resource or not (default:
|
* ``resource``: whether the method describes a main resource or not (default:
|
||||||
``false``);
|
``false``);
|
||||||
* ``description``: a description of the API method;
|
* ``description``: a description of the API method;
|
||||||
* ``https``: whether the method described requires the https protocol (default:
|
|
||||||
``false``);
|
|
||||||
* ``deprecated``: allow to set method as deprecated (default: ``false``);
|
* ``deprecated``: allow to set method as deprecated (default: ``false``);
|
||||||
* ``tags``: allow to tag a method (e.g. ``beta`` or ``in-development``). Either
|
* ``tags``: allow to tag a method (e.g. ``beta`` or ``in-development``). Either
|
||||||
a single tag or an array of tags. Each tag can have an optional hex colorcode
|
a single tag or an array of tags. Each tag can have an optional hex colorcode
|
||||||
|
@ -11,13 +11,6 @@
|
|||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if data.https %}
|
|
||||||
<span class="icon lock" title="HTTPS"></span>
|
|
||||||
{% endif %}
|
|
||||||
{% if data.authentication %}
|
|
||||||
<span class="icon keys" title="Needs {{ data.authenticationRoles|length > 0 ? data.authenticationRoles|join(', ') : 'authentication' }}"></span>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<span class="path">
|
<span class="path">
|
||||||
{% if data.host is defined -%}
|
{% if data.host is defined -%}
|
||||||
{{ data.https ? 'https://' : 'http://' -}}
|
{{ data.https ? 'https://' : 'http://' -}}
|
||||||
@ -234,9 +227,9 @@
|
|||||||
{% if enableSandbox %}
|
{% if enableSandbox %}
|
||||||
<div class="pane sandbox">
|
<div class="pane sandbox">
|
||||||
{% if app.request is not null and data.https and app.request.secure != data.https %}
|
{% if app.request is not null and data.https and app.request.secure != data.https %}
|
||||||
Please reload the documentation using the scheme {% if data.https %}HTTPS{% else %}HTTP{% endif %} if you want to use the sandbox.
|
Please reload the documentation using the scheme HTTP if you want to use the sandbox.
|
||||||
{% else %}
|
{% else %}
|
||||||
<form method="" action="{% if data.host is defined %}{{ data.https ? 'https://' : 'http://' }}{{ data.host }}{% endif %}{{ data.uri }}">
|
<form method="" action="{% if data.host is defined %}http://{{ data.host }}{% endif %}{{ data.uri }}">
|
||||||
<fieldset class="parameters">
|
<fieldset class="parameters">
|
||||||
<legend>Input</legend>
|
<legend>Input</legend>
|
||||||
{% if data.requirements is defined %}
|
{% if data.requirements is defined %}
|
||||||
|
@ -33,9 +33,7 @@ class ApiDocTest extends TestCase
|
|||||||
$this->assertFalse(isset($array['requirements']));
|
$this->assertFalse(isset($array['requirements']));
|
||||||
$this->assertFalse(isset($array['parameters']));
|
$this->assertFalse(isset($array['parameters']));
|
||||||
$this->assertNull($annot->getInput());
|
$this->assertNull($annot->getInput());
|
||||||
$this->assertFalse($array['authentication']);
|
|
||||||
$this->assertFalse(isset($array['headers']));
|
$this->assertFalse(isset($array['headers']));
|
||||||
$this->assertTrue(is_array($array['authenticationRoles']));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructWithInvalidData(): void
|
public function testConstructWithInvalidData(): void
|
||||||
@ -205,30 +203,6 @@ class ApiDocTest extends TestCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructWithAuthentication(): void
|
|
||||||
{
|
|
||||||
$data = [
|
|
||||||
'authentication' => true,
|
|
||||||
];
|
|
||||||
|
|
||||||
$annot = new ApiDoc($data);
|
|
||||||
$array = $annot->toArray();
|
|
||||||
|
|
||||||
$this->assertTrue($array['authentication']);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testConstructWithCache(): void
|
|
||||||
{
|
|
||||||
$data = [
|
|
||||||
'cache' => '60',
|
|
||||||
];
|
|
||||||
|
|
||||||
$annot = new ApiDoc($data);
|
|
||||||
$array = $annot->toArray();
|
|
||||||
|
|
||||||
$this->assertEquals($data['cache'], $array['cache']);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testConstructWithRequirements(): void
|
public function testConstructWithRequirements(): void
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
|
@ -17,7 +17,7 @@ use Nelmio\ApiDocBundle\Tests\WebTestCase;
|
|||||||
|
|
||||||
class ApiDocExtractorTest extends WebTestCase
|
class ApiDocExtractorTest extends WebTestCase
|
||||||
{
|
{
|
||||||
private static $ROUTES_QUANTITY_DEFAULT = 28; // Routes in the default view
|
private static $ROUTES_QUANTITY_DEFAULT = 26; // Routes in the default view
|
||||||
private static $ROUTES_QUANTITY_PREMIUM = 5; // Routes in the premium view
|
private static $ROUTES_QUANTITY_PREMIUM = 5; // Routes in the premium view
|
||||||
private static $ROUTES_QUANTITY_TEST = 2; // Routes in the test view
|
private static $ROUTES_QUANTITY_TEST = 2; // Routes in the test view
|
||||||
|
|
||||||
@ -161,21 +161,6 @@ class ApiDocExtractorTest extends WebTestCase
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetWithAuthentication(): void
|
|
||||||
{
|
|
||||||
$container = $this->getContainer();
|
|
||||||
$extractor = $container->get('nelmio_api_doc.extractor.api_doc_extractor');
|
|
||||||
$annotation = $extractor->get('Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::AuthenticatedAction', 'test_route_13');
|
|
||||||
|
|
||||||
$this->assertNotNull($annotation);
|
|
||||||
$this->assertTrue(
|
|
||||||
$annotation->getAuthentication()
|
|
||||||
);
|
|
||||||
$this->assertContains('ROLE_USER', $annotation->getAuthenticationRoles());
|
|
||||||
$this->assertContains('ROLE_FOOBAR', $annotation->getAuthenticationRoles());
|
|
||||||
$this->assertCount(2, $annotation->getAuthenticationRoles());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetWithDeprecated(): void
|
public function testGetWithDeprecated(): void
|
||||||
{
|
{
|
||||||
$container = $this->getContainer();
|
$container = $this->getContainer();
|
||||||
|
@ -145,23 +145,6 @@ class TestController
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @ApiDoc()
|
|
||||||
*/
|
|
||||||
public function secureRouteAction(): void
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ApiDoc(
|
|
||||||
* authentication=true,
|
|
||||||
* authenticationRoles={"ROLE_USER","ROLE_FOOBAR"}
|
|
||||||
* )
|
|
||||||
*/
|
|
||||||
public function authenticatedAction(): void
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ApiDoc()
|
* @ApiDoc()
|
||||||
*/
|
*/
|
||||||
|
@ -42,15 +42,6 @@ test_route_10:
|
|||||||
methods: [GET]
|
methods: [GET]
|
||||||
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsReturnTestAction }
|
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::jmsReturnTestAction }
|
||||||
|
|
||||||
test_route_12:
|
|
||||||
path: /secure-route
|
|
||||||
schemes: [https]
|
|
||||||
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::secureRouteAction }
|
|
||||||
|
|
||||||
test_route_13:
|
|
||||||
path: /authenticated
|
|
||||||
defaults: { _controller: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::authenticatedAction }
|
|
||||||
|
|
||||||
test_service_route_1:
|
test_service_route_1:
|
||||||
path: /tests.{_format}
|
path: /tests.{_format}
|
||||||
methods: [GET]
|
methods: [GET]
|
||||||
|
@ -58,9 +58,6 @@ class SimpleFormatterTest extends WebTestCase
|
|||||||
'requirements' => [
|
'requirements' => [
|
||||||
'_format' => ['dataType' => '', 'description' => '', 'requirement' => ''],
|
'_format' => ['dataType' => '', 'description' => '', 'requirement' => ''],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
];
|
];
|
||||||
|
@ -1,947 +0,0 @@
|
|||||||
## /api/other-resources ##
|
|
||||||
|
|
||||||
### `GET` /api/other-resources.{_format} ###
|
|
||||||
|
|
||||||
_List another resource._
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
- Requirement: json|xml|html
|
|
||||||
|
|
||||||
#### Response ####
|
|
||||||
|
|
||||||
[]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsTest)
|
|
||||||
|
|
||||||
[][foo]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
[][bar]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
[][number]:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
|
|
||||||
[][arr]:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
|
|
||||||
[][nested]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
[][nested][foo]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
[][nested][bar]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
[][nested][baz][]:
|
|
||||||
|
|
||||||
* type: array of integers
|
|
||||||
* description: Epic description.
|
|
||||||
|
|
||||||
With multiple lines.
|
|
||||||
|
|
||||||
[][nested][circular]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
[][nested][parent]:
|
|
||||||
|
|
||||||
* type: object (JmsTest)
|
|
||||||
|
|
||||||
[][nested][parent][foo]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
[][nested][parent][bar]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
[][nested][parent][number]:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
|
|
||||||
[][nested][parent][arr]:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
|
|
||||||
[][nested][parent][nested]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
[][nested][parent][nested_array][]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
|
|
||||||
[][nested][since]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.2
|
|
||||||
|
|
||||||
[][nested][until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: <=0.3
|
|
||||||
|
|
||||||
[][nested][since_and_until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.4,<=0.5
|
|
||||||
|
|
||||||
[][nested_array][]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
|
|
||||||
|
|
||||||
### `PUT|PATCH` /api/other-resources/{id}.{_format} ###
|
|
||||||
|
|
||||||
_Update a resource bu ID._
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
- Requirement: json|xml|html
|
|
||||||
**id**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## /api/resources ##
|
|
||||||
|
|
||||||
### `GET` /api/resources.{_format} ###
|
|
||||||
|
|
||||||
_List resources._
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
- Requirement: json|xml|html
|
|
||||||
|
|
||||||
#### Response ####
|
|
||||||
|
|
||||||
tests[]:
|
|
||||||
|
|
||||||
* type: array of objects (Test)
|
|
||||||
|
|
||||||
tests[][a]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
tests[][b]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /api/resources.{_format} ###
|
|
||||||
|
|
||||||
_Create a new resource._
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
- Requirement: json|xml|html
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
a:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* description: Something that describes A.
|
|
||||||
|
|
||||||
b:
|
|
||||||
|
|
||||||
* type: float
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
c:
|
|
||||||
|
|
||||||
* type: choice
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
d:
|
|
||||||
|
|
||||||
* type: datetime
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
e:
|
|
||||||
|
|
||||||
* type: date
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
g:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
#### Response ####
|
|
||||||
|
|
||||||
foo:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
bar:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
baz[]:
|
|
||||||
|
|
||||||
* type: array of integers
|
|
||||||
* description: Epic description.
|
|
||||||
|
|
||||||
With multiple lines.
|
|
||||||
|
|
||||||
circular:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
circular[foo]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
circular[bar]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
circular[baz][]:
|
|
||||||
|
|
||||||
* type: array of integers
|
|
||||||
* description: Epic description.
|
|
||||||
|
|
||||||
With multiple lines.
|
|
||||||
|
|
||||||
circular[circular]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
circular[parent]:
|
|
||||||
|
|
||||||
* type: object (JmsTest)
|
|
||||||
|
|
||||||
circular[parent][foo]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
circular[parent][bar]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
circular[parent][number]:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
|
|
||||||
circular[parent][arr]:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
|
|
||||||
circular[parent][nested]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
circular[parent][nested_array][]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
|
|
||||||
circular[since]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.2
|
|
||||||
|
|
||||||
circular[until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: <=0.3
|
|
||||||
|
|
||||||
circular[since_and_until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.4,<=0.5
|
|
||||||
|
|
||||||
parent:
|
|
||||||
|
|
||||||
* type: object (JmsTest)
|
|
||||||
|
|
||||||
parent[foo]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
parent[bar]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
parent[number]:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
|
|
||||||
parent[arr]:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
|
|
||||||
parent[nested]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
parent[nested_array][]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
|
|
||||||
since:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.2
|
|
||||||
|
|
||||||
until:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: <=0.3
|
|
||||||
|
|
||||||
since_and_until:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.4,<=0.5
|
|
||||||
|
|
||||||
|
|
||||||
### `DELETE` /api/resources/{id}.{_format} ###
|
|
||||||
|
|
||||||
_Delete a resource by ID._
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
- Requirement: json|xml|html
|
|
||||||
**id**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /api/resources/{id}.{_format} ###
|
|
||||||
|
|
||||||
_Retrieve a resource by ID._
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
- Requirement: json|xml|html
|
|
||||||
**id**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## /tests ##
|
|
||||||
|
|
||||||
### `GET` /tests.{_format} ###
|
|
||||||
|
|
||||||
_index action_
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
|
|
||||||
#### Filters ####
|
|
||||||
|
|
||||||
a:
|
|
||||||
|
|
||||||
* DataType: integer
|
|
||||||
|
|
||||||
b:
|
|
||||||
|
|
||||||
* DataType: string
|
|
||||||
* Arbitrary: ["arg1","arg2"]
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /tests.{_format} ###
|
|
||||||
|
|
||||||
_index action_
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
|
|
||||||
#### Filters ####
|
|
||||||
|
|
||||||
a:
|
|
||||||
|
|
||||||
* DataType: integer
|
|
||||||
|
|
||||||
b:
|
|
||||||
|
|
||||||
* DataType: string
|
|
||||||
* Arbitrary: ["arg1","arg2"]
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /tests.{_format} ###
|
|
||||||
|
|
||||||
_create test_
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
a:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* description: A nice description
|
|
||||||
|
|
||||||
b:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
c:
|
|
||||||
|
|
||||||
* type: boolean
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
d:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* default value: DefaultTest
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /tests.{_format} ###
|
|
||||||
|
|
||||||
_create test_
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
a:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* description: A nice description
|
|
||||||
|
|
||||||
b:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
c:
|
|
||||||
|
|
||||||
* type: boolean
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
d:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* default value: DefaultTest
|
|
||||||
|
|
||||||
|
|
||||||
## /tests2 ##
|
|
||||||
|
|
||||||
### `POST` /tests2.{_format} ###
|
|
||||||
|
|
||||||
_post test 2_
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## TestResource ##
|
|
||||||
|
|
||||||
### `ANY` /named-resource ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /another-post ###
|
|
||||||
|
|
||||||
_create another test_
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
dependency_type:
|
|
||||||
|
|
||||||
* type: object (DependencyType)
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
dependency_type[a]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* description: A nice description
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /any ###
|
|
||||||
|
|
||||||
_Action without HTTP verb_
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /any/{foo} ###
|
|
||||||
|
|
||||||
_Action without HTTP verb_
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**foo**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /authenticated ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /jms-input-test ###
|
|
||||||
|
|
||||||
_Testing JMS_
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
foo:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
number:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
arr:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[bar]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
* default value: baz
|
|
||||||
|
|
||||||
nested[baz][]:
|
|
||||||
|
|
||||||
* type: array of integers
|
|
||||||
* required: false
|
|
||||||
* description: Epic description.
|
|
||||||
|
|
||||||
With multiple lines.
|
|
||||||
|
|
||||||
nested[circular]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[parent]:
|
|
||||||
|
|
||||||
* type: object (JmsTest)
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[parent][foo]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[parent][number]:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[parent][arr]:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[parent][nested]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[parent][nested_array][]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[since]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested[since_and_until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
nested_array[]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /jms-return-test ###
|
|
||||||
|
|
||||||
_Testing return_
|
|
||||||
|
|
||||||
#### Response ####
|
|
||||||
|
|
||||||
dependency_type:
|
|
||||||
|
|
||||||
* type: object (DependencyType)
|
|
||||||
|
|
||||||
dependency_type[a]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* description: A nice description
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /my-commented/{id}/{page}/{paramType}/{param} ###
|
|
||||||
|
|
||||||
_This method is useful to test if the getDocComment works._
|
|
||||||
|
|
||||||
This method is useful to test if the getDocComment works.
|
|
||||||
And, it supports multilines until the first '@' char.
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**id**
|
|
||||||
|
|
||||||
- Type: int
|
|
||||||
- Description: A nice comment
|
|
||||||
**page**
|
|
||||||
|
|
||||||
- Type: int
|
|
||||||
**paramType**
|
|
||||||
|
|
||||||
- Type: int
|
|
||||||
- Description: The param type
|
|
||||||
**param**
|
|
||||||
|
|
||||||
- Type: int
|
|
||||||
- Description: The param id
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /return-nested-output ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Response ####
|
|
||||||
|
|
||||||
foo:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
bar:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
number:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
|
|
||||||
arr:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
|
|
||||||
nested:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
nested[foo]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
nested[bar]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
nested[baz][]:
|
|
||||||
|
|
||||||
* type: array of integers
|
|
||||||
* description: Epic description.
|
|
||||||
|
|
||||||
With multiple lines.
|
|
||||||
|
|
||||||
nested[circular]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
nested[parent]:
|
|
||||||
|
|
||||||
* type: object (JmsTest)
|
|
||||||
|
|
||||||
nested[parent][foo]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
nested[parent][bar]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
nested[parent][number]:
|
|
||||||
|
|
||||||
* type: double
|
|
||||||
|
|
||||||
nested[parent][arr]:
|
|
||||||
|
|
||||||
* type: array
|
|
||||||
|
|
||||||
nested[parent][nested]:
|
|
||||||
|
|
||||||
* type: object (JmsNested)
|
|
||||||
|
|
||||||
nested[parent][nested_array][]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
|
|
||||||
nested[since]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.2
|
|
||||||
|
|
||||||
nested[until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: <=0.3
|
|
||||||
|
|
||||||
nested[since_and_until]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* versions: >=0.4,<=0.5
|
|
||||||
|
|
||||||
nested_array[]:
|
|
||||||
|
|
||||||
* type: array of objects (JmsNested)
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /route_with_host.{_format} ###
|
|
||||||
|
|
||||||
_Route with host placeholder_
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**domain**
|
|
||||||
|
|
||||||
- Requirement: test.dev|test.com
|
|
||||||
**_format**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /secure-route ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /yet-another/{id} ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**id**
|
|
||||||
|
|
||||||
- Requirement: \d+
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /z-action-with-deprecated-indicator ###
|
|
||||||
### This method is deprecated ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /z-action-with-nullable-request-param ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
param1:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
* description: Param1 description.
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /z-action-with-query-param ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Filters ####
|
|
||||||
|
|
||||||
page:
|
|
||||||
|
|
||||||
* Requirement: \d+
|
|
||||||
* Description: Page of the overview.
|
|
||||||
* Default: 1
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /z-action-with-query-param-no-default ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Filters ####
|
|
||||||
|
|
||||||
page:
|
|
||||||
|
|
||||||
* Requirement: \d+
|
|
||||||
* Description: Page of the overview.
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /z-action-with-query-param-strict ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**page**
|
|
||||||
|
|
||||||
- Requirement: \d+
|
|
||||||
- Description: Page of the overview.
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /z-action-with-request-param ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
param1:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* description: Param1 description.
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /z-return-jms-and-validator-output ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Response ####
|
|
||||||
|
|
||||||
bar:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
objects[]:
|
|
||||||
|
|
||||||
* type: array of objects (Test)
|
|
||||||
|
|
||||||
objects[][a]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
objects[][b]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
number:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
related:
|
|
||||||
|
|
||||||
* type: object (Test)
|
|
||||||
|
|
||||||
related[a]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
related[b]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /z-return-selected-parsers-input ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Parameters ####
|
|
||||||
|
|
||||||
a:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* description: A nice description
|
|
||||||
|
|
||||||
b:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: false
|
|
||||||
|
|
||||||
c:
|
|
||||||
|
|
||||||
* type: boolean
|
|
||||||
* required: true
|
|
||||||
|
|
||||||
d:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
* required: true
|
|
||||||
* default value: DefaultTest
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /z-return-selected-parsers-output ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Response ####
|
|
||||||
|
|
||||||
bar:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
objects[]:
|
|
||||||
|
|
||||||
* type: array of objects (Test)
|
|
||||||
|
|
||||||
objects[][a]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
objects[][b]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
number:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
related:
|
|
||||||
|
|
||||||
* type: object (Test)
|
|
||||||
|
|
||||||
related[a]:
|
|
||||||
|
|
||||||
* type: string
|
|
||||||
|
|
||||||
related[b]:
|
|
||||||
|
|
||||||
* type: DateTime
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /zcached ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /zsecured ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /zz-tests-route-version.{_format} ###
|
|
||||||
|
|
||||||
|
|
||||||
#### Requirements ####
|
|
||||||
|
|
||||||
**_format**
|
|
File diff suppressed because it is too large
Load Diff
@ -442,10 +442,6 @@ _Action without HTTP verb_
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /authenticated ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `POST` /jms-input-test ###
|
### `POST` /jms-input-test ###
|
||||||
|
|
||||||
_Testing JMS_
|
_Testing JMS_
|
||||||
@ -686,10 +682,6 @@ _Route with host placeholder_
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `ANY` /secure-route ###
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### `GET` /with-link ###
|
### `GET` /with-link ###
|
||||||
|
|
||||||
|
|
||||||
|
@ -285,10 +285,6 @@ With multiple lines.',
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'resourceDescription' => 'Operations on another resource.',
|
'resourceDescription' => 'Operations on another resource.',
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -308,10 +304,6 @@ With multiple lines.',
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -380,10 +372,6 @@ With multiple lines.',
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'resourceDescription' => 'Operations on resource.',
|
'resourceDescription' => 'Operations on resource.',
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -819,10 +807,6 @@ With multiple lines.',
|
|||||||
'untilVersion' => '0.5',
|
'untilVersion' => '0.5',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -842,10 +826,6 @@ With multiple lines.',
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -865,10 +845,6 @@ With multiple lines.',
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -897,10 +873,6 @@ With multiple lines.',
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -958,10 +930,6 @@ With multiple lines.',
|
|||||||
0 => 'default',
|
0 => 'default',
|
||||||
1 => 'premium',
|
1 => 'premium',
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -982,10 +950,6 @@ With multiple lines.',
|
|||||||
0 => 'default',
|
0 => 'default',
|
||||||
1 => 'premium',
|
1 => 'premium',
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -997,10 +961,6 @@ With multiple lines.',
|
|||||||
'views' => [
|
'views' => [
|
||||||
0 => 'default',
|
0 => 'default',
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -1036,10 +996,6 @@ With multiple lines.',
|
|||||||
0 => 'default',
|
0 => 'default',
|
||||||
1 => 'test',
|
1 => 'test',
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
@ -1054,26 +1010,10 @@ With multiple lines.',
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
2 => [
|
2 => [
|
||||||
'method' => 'ANY',
|
|
||||||
'uri' => '/authenticated',
|
|
||||||
'https' => false,
|
|
||||||
'authentication' => true,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
0 => 'ROLE_USER',
|
|
||||||
1 => 'ROLE_FOOBAR',
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
|
||||||
'scope' => null,
|
|
||||||
],
|
|
||||||
3 => [
|
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'uri' => '/jms-input-test',
|
'uri' => '/jms-input-test',
|
||||||
'description' => 'Testing JMS',
|
'description' => 'Testing JMS',
|
||||||
@ -1333,14 +1273,10 @@ With multiple lines.',
|
|||||||
'untilVersion' => null,
|
'untilVersion' => null,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
4 => [
|
3 => [
|
||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
'uri' => '/jms-return-test',
|
'uri' => '/jms-return-test',
|
||||||
'description' => 'Testing return',
|
'description' => 'Testing return',
|
||||||
@ -1366,14 +1302,10 @@ With multiple lines.',
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
5 => [
|
4 => [
|
||||||
'method' => 'ANY',
|
'method' => 'ANY',
|
||||||
'uri' => '/my-commented/{id}/{page}/{paramType}/{param}',
|
'uri' => '/my-commented/{id}/{page}/{paramType}/{param}',
|
||||||
'description' => 'This method is useful to test if the getDocComment works.',
|
'description' => 'This method is useful to test if the getDocComment works.',
|
||||||
@ -1401,14 +1333,10 @@ And, it supports multilines until the first \'@\' char.',
|
|||||||
'requirement' => '',
|
'requirement' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
6 => [
|
5 => [
|
||||||
'method' => 'ANY',
|
'method' => 'ANY',
|
||||||
'uri' => '/return-nested-output',
|
'uri' => '/return-nested-output',
|
||||||
'response' => [
|
'response' => [
|
||||||
@ -1667,14 +1595,10 @@ With multiple lines.',
|
|||||||
'untilVersion' => null,
|
'untilVersion' => null,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
7 => [
|
6 => [
|
||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
'uri' => '/route_with_host.{_format}',
|
'uri' => '/route_with_host.{_format}',
|
||||||
'host' => 'api.test.dev',
|
'host' => 'api.test.dev',
|
||||||
@ -1694,35 +1618,17 @@ With multiple lines.',
|
|||||||
'views' => [
|
'views' => [
|
||||||
0 => 'default',
|
0 => 'default',
|
||||||
],
|
],
|
||||||
'https' => false,
|
'deprecated' => false,
|
||||||
'authentication' => false,
|
'scope' => null,
|
||||||
'authenticationRoles' => [
|
],
|
||||||
],
|
7 => [
|
||||||
|
'method' => 'GET',
|
||||||
|
'uri' => '/with-link',
|
||||||
|
'link' => 'http://symfony.com',
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
8 => [
|
8 => [
|
||||||
'method' => 'ANY',
|
|
||||||
'uri' => '/secure-route',
|
|
||||||
'https' => true,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
|
||||||
'scope' => null,
|
|
||||||
],
|
|
||||||
9 => [
|
|
||||||
'method' => 'GET',
|
|
||||||
'uri' => '/with-link',
|
|
||||||
'link' => 'http://symfony.com',
|
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
|
||||||
'scope' => null,
|
|
||||||
],
|
|
||||||
10 => [
|
|
||||||
'method' => 'ANY',
|
'method' => 'ANY',
|
||||||
'uri' => '/yet-another/{id}',
|
'uri' => '/yet-another/{id}',
|
||||||
'requirements' => [
|
'requirements' => [
|
||||||
@ -1732,24 +1638,16 @@ With multiple lines.',
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
11 => [
|
9 => [
|
||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
'uri' => '/z-action-with-deprecated-indicator',
|
'uri' => '/z-action-with-deprecated-indicator',
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => true,
|
'deprecated' => true,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
12 => [
|
10 => [
|
||||||
'method' => 'ANY',
|
'method' => 'ANY',
|
||||||
'uri' => '/z-return-jms-and-validator-output',
|
'uri' => '/z-return-jms-and-validator-output',
|
||||||
'response' => [
|
'response' => [
|
||||||
@ -1862,14 +1760,10 @@ With multiple lines.',
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
13 => [
|
11 => [
|
||||||
'method' => 'ANY',
|
'method' => 'ANY',
|
||||||
'uri' => '/z-return-selected-parsers-input',
|
'uri' => '/z-return-selected-parsers-input',
|
||||||
'parameters' => [
|
'parameters' => [
|
||||||
@ -1910,14 +1804,10 @@ With multiple lines.',
|
|||||||
'readonly' => false,
|
'readonly' => false,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
14 => [
|
12 => [
|
||||||
'method' => 'ANY',
|
'method' => 'ANY',
|
||||||
'uri' => '/z-return-selected-parsers-output',
|
'uri' => '/z-return-selected-parsers-output',
|
||||||
'response' => [
|
'response' => [
|
||||||
@ -2030,34 +1920,22 @@ With multiple lines.',
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
'deprecated' => false,
|
||||||
'authentication' => false,
|
'scope' => null,
|
||||||
'authenticationRoles' => [
|
],
|
||||||
],
|
13 => [
|
||||||
|
'method' => 'POST',
|
||||||
|
'uri' => '/zcached',
|
||||||
|
'deprecated' => false,
|
||||||
|
'scope' => null,
|
||||||
|
],
|
||||||
|
14 => [
|
||||||
|
'method' => 'POST',
|
||||||
|
'uri' => '/zsecured',
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
15 => [
|
15 => [
|
||||||
'method' => 'POST',
|
|
||||||
'uri' => '/zcached',
|
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
|
||||||
'scope' => null,
|
|
||||||
],
|
|
||||||
16 => [
|
|
||||||
'method' => 'POST',
|
|
||||||
'uri' => '/zsecured',
|
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
|
||||||
'scope' => null,
|
|
||||||
],
|
|
||||||
17 => [
|
|
||||||
'method' => 'GET',
|
'method' => 'GET',
|
||||||
'uri' => '/zz-tests-route-version.{_format}',
|
'uri' => '/zz-tests-route-version.{_format}',
|
||||||
'requirements' => [
|
'requirements' => [
|
||||||
@ -2067,10 +1945,6 @@ With multiple lines.',
|
|||||||
'description' => '',
|
'description' => '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'https' => false,
|
|
||||||
'authentication' => false,
|
|
||||||
'authenticationRoles' => [
|
|
||||||
],
|
|
||||||
'deprecated' => false,
|
'deprecated' => false,
|
||||||
'scope' => null,
|
'scope' => null,
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user