-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathquickapi-schema.json
147 lines (140 loc) · 4.37 KB
/
quickapi-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"BiwenQuickApi": {
"type": "object",
"description": "BiwenQuickApi",
"properties": {
"QuickApi": {
"type": "object",
"description": "QuickApi",
"properties": {
"RoutePrefix": {
"type": "string",
"default": "api",
"description": "QuickApi前缀,默认:api"
},
"EnableAntiForgeryTokens": {
"type": "boolean",
"default": true,
"description": "默认:true"
},
"EnablePubSub": {
"type": "boolean",
"default": true,
"description": "是否启用内置发布订阅,默认:true"
},
"EnableScheduling": {
"type": "boolean",
"default": true,
"description": "是否启用内置Schedule,默认:true"
},
"UseQuickApiExceptionResultBuilder": {
"type": "boolean",
"default": false,
"description": "是否500返回详细信息,默认:false"
}
}
},
"MiniProfiler": {
"type": "object",
"description": "MiniProfiler配置项",
"properties": {
"Enabled": {
"type": "boolean",
"default": false,
"description": "是否启用MiniProfiler,默认:false"
},
"PopupShowTrivial": {
"type": "boolean",
"default": false,
"description": "是否显示Trivial,默认:false"
},
"PopupRenderPosition": {
"type": "string",
"default": "TopLeft",
"enum": [ "TopLeft", "BottomLeft", "TopRigth", "BottomRight" ],
"description": "弹出位置,默认:TopLeft"
}
}
},
"Schedules": {
"type": "array",
"description": "定时任务集合",
"items": {
"type": "object",
"properties": {
"ScheduleTaskType": {
"type": "string",
"description": "定时任务类型"
},
"Cron": {
"type": "string",
"description": "Cron表达式"
},
"Description": {
"type": "string",
"description": "描述信息"
},
"IsAsync": {
"type": "boolean",
"default": false,
"description": "是否异步,默认:false,表示同步阻塞执行"
},
"IsStartOnInit": {
"type": "boolean",
"default": false,
"description": "是否初始化就启动,默认:false"
}
}
},
"required": [ "Cron", "ScheduleTaskType" ]
},
"Telemetry": {
"type": "object",
"properties": {
"Enable": {
"type": "boolean",
"default": false,
"description": "是否启用Telemetry,默认:false"
},
"SamplingInterval": {
"type": "integer",
"default": 15,
"description": "采样间隔,单位秒,默认:15秒,介于5~900之间",
"minimum": 5,
"maximum": 900
}
}
},
"MultiTenants": {
"type": "array",
"description": "多租户配置",
"items": {
"type": "object",
"properties": {
"Id": {
"type": "string",
"description": "租户Id"
},
"Name": {
"type": "string",
"description": "租户名称"
},
"Identifier": {
"type": "string",
"description": "Identifier,针对不同的Finder可能是正则表达式等,默认忽略大小写!"
},
"ConnectionString": {
"type": "string",
"description": "数据库连接字符串,该项针对自定义TInfo不是必须项!"
}
},
"required": [ "Id", "Name", "Identifier" ]
}
}
}
}
}
}