aiblog/config/l5-swagger.php
2024-11-17 11:30:01 +08:00

29 lines
No EOL
810 B
PHP

<?php
return [
'default' => 'default',
'documentations' => [
'default' => [
'api' => [
'title' => 'Blog API Documentation',
],
'routes' => [
'api' => 'api/documentation',
],
'paths' => [
'use_absolute_path' => env('L5_SWAGGER_USE_ABSOLUTE_PATH', true),
'docs_json' => 'api-docs.json',
'docs_yaml' => 'api-docs.yaml',
'format_to_use_for_docs' => env('L5_FORMAT_TO_USE_FOR_DOCS', 'json'),
],
],
],
'security' => [
'api_key' => [
'type' => 'apiKey',
'description' => 'Authorization token',
'name' => 'Authorization',
'in' => 'header',
],
],
];