Skip to content

Commit 91b17f1

Browse files
authored
fix(laravel): correct the example of swagger_ui.apiKeys config (#7392)
1 parent 54352d8 commit 91b17f1

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

src/Laravel/config/api-platform.php

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
'routes' => [
2626
'domain' => null,
2727
// Global middleware applied to every API Platform routes
28-
// 'middleware' => []
28+
// 'middleware' => [],
2929
],
3030

3131
'resources' => [
@@ -78,13 +78,13 @@
7878
'introspection' => ['enabled' => true],
7979
'max_query_complexity' => 500,
8080
'max_query_depth' => 200,
81-
// 'middleware' => null
81+
// 'middleware' => null,
8282
],
8383

8484
'graphiql' => [
8585
// 'enabled' => true,
8686
// 'domain' => null,
87-
// 'middleware' => null
87+
// 'middleware' => null,
8888
],
8989

9090
// set to null if you want to keep snake_case
@@ -98,48 +98,47 @@
9898
'swagger_ui' => [
9999
'enabled' => true,
100100
// 'apiKeys' => [
101-
// 'api' => [
102-
// 'type' => 'Bearer',
103-
// 'name' => 'Authentication Token',
104-
// 'in' => 'header'
105-
// ]
101+
// 'api' => [
102+
// 'name' => 'Authorization',
103+
// 'type' => 'header',
104+
// ],
106105
// ],
107106
// 'oauth' => [
108-
// 'enabled' => true,
109-
// 'type' => 'oauth2',
110-
// 'flow' => 'authorizationCode',
111-
// 'tokenUrl' => '',
112-
// 'authorizationUrl' =>'',
113-
// 'refreshUrl' => '',
114-
// 'scopes' => ['scope1' => 'Description scope 1'],
115-
// 'pkce' => true
107+
// 'enabled' => true,
108+
// 'type' => 'oauth2',
109+
// 'flow' => 'authorizationCode',
110+
// 'tokenUrl' => '',
111+
// 'authorizationUrl' =>'',
112+
// 'refreshUrl' => '',
113+
// 'scopes' => ['scope1' => 'Description scope 1'],
114+
// 'pkce' => true,
116115
// ],
117116
// 'license' => [
118-
// 'name' => 'Apache 2.0',
119-
// 'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
117+
// 'name' => 'Apache 2.0',
118+
// 'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
120119
// ],
121120
// 'contact' => [
122-
// 'name' => 'API Support',
123-
// 'url' => 'https://www.example.com/support',
124-
// 'email' => '[email protected]',
121+
// 'name' => 'API Support',
122+
// 'url' => 'https://www.example.com/support',
123+
// 'email' => '[email protected]',
125124
// ],
126125
// 'http_auth' => [
127-
// 'Personal Access Token' => [
128-
// 'scheme' => 'bearer',
129-
// 'bearerFormat' => 'JWT'
130-
// ]
131-
// ]
126+
// 'Personal Access Token' => [
127+
// 'scheme' => 'bearer',
128+
// 'bearerFormat' => 'JWT',
129+
// ],
130+
// ],
132131
],
133132

134133
// 'openapi' => [
135-
// 'tags' => []
134+
// 'tags' => [],
136135
// ],
137136

138137
'url_generation_strategy' => UrlGeneratorInterface::ABS_PATH,
139138

140139
'serializer' => [
141140
'hydra_prefix' => false,
142-
// 'datetime_format' => \DateTimeInterface::RFC3339
141+
// 'datetime_format' => \DateTimeInterface::RFC3339,
143142
],
144143

145144
// we recommend using "file" or "acpu"
@@ -161,5 +160,5 @@
161160
// 'request_options' => [],
162161
// 'purger' => ApiPlatform\HttpCache\SouinPurger::class,
163162
// ],
164-
// ]
163+
// ],
165164
];

0 commit comments

Comments
 (0)