-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.json
287 lines (287 loc) · 8.29 KB
/
openapi.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
"openapi": "3.0.1",
"info": {
"title": "api",
"description": "",
"version": "1.0.0"
},
"tags": [
{
"name": "杂鱼体质健康得分计算器"
}
],
"paths": {
"/": {
"post": {
"summary": "杂鱼体质健康得分计算器",
"x-apifox-folder": "杂鱼体质健康得分计算器",
"x-apifox-status": "released",
"deprecated": false,
"description": "",
"tags": [
"杂鱼体质健康得分计算器"
],
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"gender": {
"type": "integer",
"minimum": 0,
"maximum": 1,
"description": "性别 0: 男 1: 女",
"enum": [
0,
1
],
"x-apifox": {
"enumDescriptions": {
"0": "男",
"1": "女"
}
},
"default": 0,
"title": "性别"
},
"grade": {
"type": "integer",
"minimum": 0,
"maximum": 1,
"description": "年级 0: 大一大二 1: 大三大四",
"enum": [
0,
1
],
"x-apifox": {
"enumDescriptions": {
"0": "大一大二",
"1": "大三大四"
}
},
"default": 0,
"title": "年级"
},
"height": {
"title": "身高 ",
"description": "身高 (单位: m)",
"type": "number"
},
"weight": {
"title": "体重",
"description": "体重 (单位: kg)",
"type": "number"
},
"vc": {
"title": "肺活量",
"description": "肺活量",
"type": "number"
},
"r50m": {
"title": "50m",
"description": "50m (单位: s)",
"type": "number"
},
"sff": {
"title": "坐位体前屈",
"description": "坐位体前屈 (单位: cm)",
"type": "number"
},
"slj": {
"title": "立定跳远",
"description": "立定跳远 (单位: cm)",
"type": "number"
},
"pull_up": {
"title": "引体向上",
"description": "引体向上",
"type": "number",
"nullable": true
},
"sit_up": {
"title": "仰卧起坐",
"description": "仰卧起坐",
"type": "number",
"nullable": true
},
"long_run": {
"type": "number",
"description": "800m/1000m (单位: min)",
"title": "800m/1000m "
}
},
"required": [
"gender",
"grade",
"height",
"weight",
"vc",
"r50m",
"sff",
"slj",
"pull_up",
"sit_up",
"long_run"
],
"x-apifox-orders": [
"gender",
"grade",
"height",
"weight",
"vc",
"r50m",
"sff",
"slj",
"pull_up",
"sit_up",
"long_run"
],
"x-apifox-ignore-properties": []
},
"example": {
"gender": 0,
"grade": 0,
"height": 1.68,
"weight": 56.5,
"vc": 4800,
"r50m": 7.43,
"sff": 12,
"slj": 256,
"pull_up": 12,
"sit_up": null,
"long_run": 3.43
}
}
}
},
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"err_msg": {
"type": "null"
},
"bmi": {
"type": "number"
},
"vc": {
"type": "number"
},
"r50m": {
"type": "number"
},
"sff": {
"type": "number"
},
"slj": {
"type": "number"
},
"pull_up": {
"type": "number",
"nullable": true
},
"sit_up": {
"type": "number",
"nullable": true
},
"long_run": {
"type": "number"
},
"total": {
"type": "number"
}
},
"required": [
"err_msg",
"bmi",
"vc",
"r50m",
"sff",
"slj",
"pull_up",
"sit_up",
"long_run",
"total"
],
"x-apifox-orders": [
"err_msg",
"bmi",
"vc",
"r50m",
"sff",
"slj",
"pull_up",
"sit_up",
"long_run",
"total"
],
"x-apifox-ignore-properties": []
},
"examples": {
"1": {
"summary": "成功示例 ",
"value": {
"err_msg": null,
"bmi": 100,
"vc": 90,
"r50m": 76,
"sff": 70,
"slj": 85,
"pull_up": 70,
"sit_up": null,
"long_run": 78,
"total": 81.80000000000001
}
}
}
}
}
}
}
}
},
"/ping": {
"get": {
"summary": "ping",
"x-apifox-folder": "杂鱼体质健康得分计算器",
"x-apifox-status": "released",
"deprecated": false,
"description": "测试是否连通",
"tags": [
"杂鱼体质健康得分计算器"
],
"parameters": [],
"responses": {
"200": {
"description": "成功",
"content": {
"*/*": {
"schema": {
"type": "object",
"properties": {},
"x-apifox-ignore-properties": [],
"x-apifox-orders": []
},
"examples": {
"1": {
"summary": "成功示例 ",
"value": "Pong"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {}
}
}