初始化本地仓库
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
use OpenApi\Annotations as OAA;
|
||||
use OpenApi\Attributes as OA;
|
||||
|
||||
return [
|
||||
/**
|
||||
* 全局开关
|
||||
*/
|
||||
'enable' => true,
|
||||
|
||||
/**
|
||||
* 全局扫描的配置
|
||||
*
|
||||
* @see \WebmanTech\Swagger\Swagger::registerGlobalRoute()
|
||||
* @see \WebmanTech\Swagger\DTO\ConfigRegisterRouteDTO
|
||||
*/
|
||||
'global_route' => [
|
||||
'register_route' => false,
|
||||
'enable' => false,
|
||||
'openapi_doc' => [
|
||||
'scan_path' => [
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
/**
|
||||
* 全局的 host forbidden 配置
|
||||
*
|
||||
* @see \WebmanTech\Swagger\DTO\ConfigHostForbiddenDTO
|
||||
*/
|
||||
'host_forbidden' => [
|
||||
'enable' => true,
|
||||
'host_white_list' => [],
|
||||
],
|
||||
|
||||
/**
|
||||
* 全局的 swagger ui 配置
|
||||
*
|
||||
* @see \WebmanTech\Swagger\DTO\ConfigSwaggerUiDTO
|
||||
*/
|
||||
'swagger_ui' => [
|
||||
|
||||
],
|
||||
|
||||
/**
|
||||
* 全局的 openapi doc 配置
|
||||
*
|
||||
* @see \WebmanTech\Swagger\DTO\ConfigOpenapiDocDTO
|
||||
*/
|
||||
'openapi_doc' => [
|
||||
'scan_path' => function () {
|
||||
},
|
||||
'scan_exclude' => [
|
||||
],
|
||||
'modify' => function (OAA\OpenApi $openapi) {
|
||||
},
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
\WebmanTech\Swagger\Swagger::create()->registerGlobalRoute();
|
||||
Reference in New Issue
Block a user