mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-12 18:46:10 +03:00
Fix cs
This commit is contained in:
parent
f63ab23fe5
commit
6bce4e0a8a
@ -118,64 +118,52 @@ class TestKernel extends Kernel
|
|||||||
// Filter routes
|
// Filter routes
|
||||||
$c->loadFromExtension('nelmio_api_doc', [
|
$c->loadFromExtension('nelmio_api_doc', [
|
||||||
'areas' => [
|
'areas' => [
|
||||||
'default' => ['path_patterns' => ['^/api(?!/admin)'], 'host_patterns' => ['^api\.'], 'documentation' => [
|
'default' => [
|
||||||
'info' => [
|
'path_patterns' => ['^/api(?!/admin)'],
|
||||||
'title' => 'My Test App',
|
'host_patterns' => ['^api\.'],
|
||||||
],
|
'documentation' => [
|
||||||
'definitions' => [
|
'info' => [
|
||||||
'Test' => [
|
'title' => 'My Test App',
|
||||||
'type' => 'string',
|
],
|
||||||
|
'definitions' => [
|
||||||
|
'Test' => [
|
||||||
|
'type' => 'string',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'parameters' => [
|
||||||
|
'test' => [
|
||||||
|
'name' => 'id',
|
||||||
|
'in' => 'path',
|
||||||
|
'required' => true,
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'parameters' => [
|
],
|
||||||
'test' => [
|
'test' => [
|
||||||
'name' => 'id',
|
'path_patterns' => ['^/test'],
|
||||||
'in' => 'path',
|
'host_patterns' => ['^api-test\.'],
|
||||||
'required' => true,
|
'documentation' => [
|
||||||
|
'info' => [
|
||||||
|
'title' => 'My Test App',
|
||||||
|
],
|
||||||
|
'definitions' => [
|
||||||
|
'Test' => [
|
||||||
|
'type' => 'string',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'parameters' => [
|
||||||
|
'test' => [
|
||||||
|
'name' => 'id',
|
||||||
|
'in' => 'path',
|
||||||
|
'required' => true,
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
]],
|
],
|
||||||
'test' => ['path_patterns' => ['^/test'], 'host_patterns' => ['^api-test\.'], 'documentation' => [
|
|
||||||
'info' => [
|
|
||||||
'title' => 'My Test App',
|
|
||||||
],
|
|
||||||
'definitions' => [
|
|
||||||
'Test' => [
|
|
||||||
'type' => 'string',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'parameters' => [
|
|
||||||
'test' => [
|
|
||||||
'name' => 'id',
|
|
||||||
'in' => 'path',
|
|
||||||
'required' => true,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
]],
|
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* 'documentation' => [
|
|
||||||
'info' => [
|
|
||||||
'title' => 'My Test App',
|
|
||||||
],
|
|
||||||
'definitions' => [
|
|
||||||
'Test' => [
|
|
||||||
'type' => 'string',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'parameters' => [
|
|
||||||
'test' => [
|
|
||||||
'name' => 'id',
|
|
||||||
'in' => 'path',
|
|
||||||
'required' => true,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user