Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 28 additions & 29 deletions src/Laravel/config/api-platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'routes' => [
'domain' => null,
// Global middleware applied to every API Platform routes
// 'middleware' => []
// 'middleware' => [],
],

'resources' => [
Expand Down Expand Up @@ -78,13 +78,13 @@
'introspection' => ['enabled' => true],
'max_query_complexity' => 500,
'max_query_depth' => 200,
// 'middleware' => null
// 'middleware' => null,
],

'graphiql' => [
// 'enabled' => true,
// 'domain' => null,
// 'middleware' => null
// 'middleware' => null,
],

// set to null if you want to keep snake_case
Expand All @@ -98,48 +98,47 @@
'swagger_ui' => [
'enabled' => true,
// 'apiKeys' => [
// 'api' => [
// 'type' => 'Bearer',
// 'name' => 'Authentication Token',
// 'in' => 'header'
// ]
// 'api' => [
// 'name' => 'Authorization',
// 'type' => 'header',
// ],
// ],
// 'oauth' => [
// 'enabled' => true,
// 'type' => 'oauth2',
// 'flow' => 'authorizationCode',
// 'tokenUrl' => '',
// 'authorizationUrl' =>'',
// 'refreshUrl' => '',
// 'scopes' => ['scope1' => 'Description scope 1'],
// 'pkce' => true
// 'enabled' => true,
// 'type' => 'oauth2',
// 'flow' => 'authorizationCode',
// 'tokenUrl' => '',
// 'authorizationUrl' =>'',
// 'refreshUrl' => '',
// 'scopes' => ['scope1' => 'Description scope 1'],
// 'pkce' => true,
// ],
// 'license' => [
// 'name' => 'Apache 2.0',
// 'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
// 'name' => 'Apache 2.0',
// 'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
// ],
// 'contact' => [
// 'name' => 'API Support',
// 'url' => 'https://www.example.com/support',
// 'email' => 'support@example.com',
// 'name' => 'API Support',
// 'url' => 'https://www.example.com/support',
// 'email' => 'support@example.com',
// ],
// 'http_auth' => [
// 'Personal Access Token' => [
// 'scheme' => 'bearer',
// 'bearerFormat' => 'JWT'
// ]
// ]
// 'Personal Access Token' => [
// 'scheme' => 'bearer',
// 'bearerFormat' => 'JWT',
// ],
// ],
],

// 'openapi' => [
// 'tags' => []
// 'tags' => [],
// ],

'url_generation_strategy' => UrlGeneratorInterface::ABS_PATH,

'serializer' => [
'hydra_prefix' => false,
// 'datetime_format' => \DateTimeInterface::RFC3339
// 'datetime_format' => \DateTimeInterface::RFC3339,
],

// we recommend using "file" or "acpu"
Expand All @@ -161,5 +160,5 @@
// 'request_options' => [],
// 'purger' => ApiPlatform\HttpCache\SouinPurger::class,
// ],
// ]
// ],
];
Loading