forked from e-dialect/hinghwa-dict-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pronunciation-PN0205-200.apifox-cli.json
3506 lines (3506 loc) · 109 KB
/
pronunciation-PN0205-200.apifox-cli.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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"apifoxCli": "1.1.0",
"item": [
{
"item": [
{
"id": "dc283bff-a7b0-4512-8049-d3166d1b5f65",
"name": "LG0101 账号密码登录(登录用户admin)",
"request": {
"url": {
"protocol": "http",
"port": "8000",
"path": [
"login"
],
"host": [
"127",
"0",
"0",
"1"
],
"query": [],
"variable": []
},
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "User-Agent",
"value": "Apifox/1.0.0 (https://www.apifox.cn)"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"baseUrl": "http://127.0.0.1:8000",
"body": {
"mode": "raw",
"raw": "{\r\n \"username\": \"admin\",\r\n \"password\": \"testtest123\"\r\n}",
"type": "application/json"
},
"type": "http"
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"id": "postProcessors.0.extractor",
"type": "text/javascript",
"exec": [
"",
" if (JSON.setEnableBigInt) {",
" JSON.setEnableBigInt(undefined);",
" }",
" ",
" try{",
" ",
" const expression = pm.variables.replaceIn(`$.token`);",
" const JSONPath = require('jsonpath-plus').JSONPath;",
" const jsonData = pm.response.json();",
" let value = JSONPath({",
" json: jsonData,",
" path: expression,",
" wrap: false",
" });",
"",
" ",
" if (false && undefined !== undefined) {",
" if (Array.isArray(value)) {",
" value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
" } else {",
" value = undefined;",
" }",
" }",
" ",
" ",
" switch (typeof value) {",
" case 'object':",
" value = JSON.stringify(value);",
" break;",
" default:",
" value = String(value);",
" break;",
" }",
" ",
" pm.environment.set(`token`, value);console.log('已设置环境变量【token】,值为 【' + value + '】')",
" } catch(e) {",
" e.message = '提取变量【token】出错: ' + e.message;",
" throw e;",
" }",
" ",
" "
]
}
},
{
"listen": "test",
"script": {
"id": "postProcessors.1.extractor",
"type": "text/javascript",
"exec": [
"",
" if (JSON.setEnableBigInt) {",
" JSON.setEnableBigInt(undefined);",
" }",
" ",
" try{",
" ",
" const expression = pm.variables.replaceIn(`$.id`);",
" const JSONPath = require('jsonpath-plus').JSONPath;",
" const jsonData = pm.response.json();",
" let value = JSONPath({",
" json: jsonData,",
" path: expression,",
" wrap: false",
" });",
"",
" ",
" if (false && undefined !== undefined) {",
" if (Array.isArray(value)) {",
" value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
" } else {",
" value = undefined;",
" }",
" }",
" ",
" ",
" switch (typeof value) {",
" case 'object':",
" value = JSON.stringify(value);",
" break;",
" default:",
" value = String(value);",
" break;",
" }",
" ",
" pm.variables.set(`user_id_1`, value);console.log('已设置临时变量【user_id_1】,值为 【' + value + '】')",
" } catch(e) {",
" e.message = '提取变量【user_id_1】出错: ' + e.message;",
" throw e;",
" }",
" ",
" "
]
}
}
],
"responseDefinition": {
"id": 4183271,
"createdAt": "2021-07-29T14:43:37.000Z",
"updatedAt": "2021-08-12T16:27:18.000Z",
"deletedAt": null,
"apiDetailId": 5318056,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"token": {
"type": "string",
"mock": {
"mock": "@string"
},
"title": "权"
},
"id": {
"type": "integer",
"title": "用户id"
}
},
"required": [
"token",
"id"
]
},
"defaultEnable": true,
"projectId": 0,
"ordering": 1,
"schemaDefinitions": {}
},
"requestDefinition": {
"jsonSchema": {
"type": "object",
"properties": {
"username": {
"type": "string",
"mock": {
"mock": "@cname"
},
"title": "用户名"
},
"password": {
"type": "string",
"mock": {
"mock": "@string('lower', 1, 3)"
},
"title": "密码"
}
},
"required": [
"username",
"password"
]
}
},
"metaInfo": {
"httpApiId": 5318056,
"httpApiCaseId": 66519209,
"httpApiName": "LG0101 账号密码登录",
"httpApiPath": "/login",
"httpApiMethod": "post",
"httpApiCaseName": "登录用户admin",
"id": "618df087-660e-4b6a-9c5c-e6b525192083",
"type": "http"
},
"type": "http",
"protocolProfileBehavior": {
"useWhatWGUrlParser": false,
"disableUrlEncoding": false
}
},
{
"id": "8be7dd80-1bd0-4e89-b6ec-d41bd58a6e85",
"name": "WD0102 管理员上传新词语(WD0102 管理员上传新词语)",
"request": {
"url": {
"protocol": "http",
"port": "8000",
"path": [
"words"
],
"host": [
"127",
"0",
"0",
"1"
],
"query": [],
"variable": []
},
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "User-Agent",
"value": "Apifox/1.0.0 (https://www.apifox.cn)"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"baseUrl": "http://127.0.0.1:8000",
"body": {
"mode": "raw",
"raw": "{\r\n \"word\": {\r\n \"standard_ipa\": \"elit Ut dolor\",\r\n \"standard_pinyin\": \"amet et occaecat\",\r\n \"related_words\": [],\r\n \"related_articles\": [],\r\n \"visibility\": true,\r\n \"word\": \"因\",\r\n \"annotation\": \"号设证社各战写们好什反万少物名发。条或增装只重经问改他满会片从识局属。新务用目听世电且作亲最用许外。备广方少路山就断向门见发光。矿关采交验水定有半位复六等术如明。\",\r\n \"definition\": \"论权命确专速平流放严命题构认然始石。家文五行斗眼专管斗例通何步土必。界器段委和事具矿正机化导近已价心员。候从却系毛对很难立育写节。们争常产率西空习层次根论步至。\",\r\n \"mandarin\": [\r\n \"断\"\r\n ]\r\n }\r\n}",
"type": "application/json"
},
"type": "http"
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"id": "postProcessors.0.extractor",
"type": "text/javascript",
"exec": [
"",
" if (JSON.setEnableBigInt) {",
" JSON.setEnableBigInt(undefined);",
" }",
" ",
" try{",
" ",
" const expression = pm.variables.replaceIn(`$.id`);",
" const JSONPath = require('jsonpath-plus').JSONPath;",
" const jsonData = pm.response.json();",
" let value = JSONPath({",
" json: jsonData,",
" path: expression,",
" wrap: false",
" });",
"",
" ",
" if (false && undefined !== undefined) {",
" if (Array.isArray(value)) {",
" value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
" } else {",
" value = undefined;",
" }",
" }",
" ",
" ",
" switch (typeof value) {",
" case 'object':",
" value = JSON.stringify(value);",
" break;",
" default:",
" value = String(value);",
" break;",
" }",
" ",
" pm.environment.set(`word_id_1`, value);console.log('已设置环境变量【word_id_1】,值为 【' + value + '】')",
" } catch(e) {",
" e.message = '提取变量【word_id_1】出错: ' + e.message;",
" throw e;",
" }",
" ",
" "
]
}
}
],
"responseDefinition": {
"id": 4275786,
"createdAt": "2021-07-31T14:43:25.000Z",
"updatedAt": "2021-08-02T15:13:44.000Z",
"deletedAt": null,
"apiDetailId": 5349877,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
}
},
"required": [
"id"
]
},
"defaultEnable": true,
"projectId": 0,
"ordering": 1,
"schemaDefinitions": {}
},
"requestDefinition": {
"jsonSchema": {
"type": "object",
"properties": {
"word": {
"$ref": "#/definitions/1078257"
}
},
"required": [
"word"
],
"description": "related为id列表"
}
},
"metaInfo": {
"httpApiId": 5349877,
"httpApiCaseId": 66565257,
"httpApiName": "WD0102 管理员上传新词语",
"httpApiPath": "/words",
"httpApiMethod": "post",
"httpApiCaseName": "WD0102 管理员上传新词语",
"id": "583e87b0-837a-4328-a1e0-eb0a91125adc",
"type": "http"
},
"type": "http",
"protocolProfileBehavior": {
"useWhatWGUrlParser": false,
"disableUrlEncoding": false
}
},
{
"id": "dadeb29f-3827-4f19-9135-ed68fc750110",
"name": "WD0102 管理员上传新词语(WD0102 管理员上传新词语)",
"request": {
"url": {
"protocol": "http",
"port": "8000",
"path": [
"words"
],
"host": [
"127",
"0",
"0",
"1"
],
"query": [],
"variable": []
},
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "User-Agent",
"value": "Apifox/1.0.0 (https://www.apifox.cn)"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"baseUrl": "http://127.0.0.1:8000",
"body": {
"mode": "raw",
"raw": "{\r\n \"word\": {\r\n \"standard_ipa\": \"eu ut eiusmod\",\r\n \"standard_pinyin\": \"ipsum Duis in\",\r\n \"related_words\": [\r\n ],\r\n \"annotation\": \"千万须于建斗情头毛地改般交规据政。成存族集油根今便入起关难学影安适。水划属极连资手可素元阶长山头便照体。当究手人深候与基值花目府劳装需阶。\",\r\n \"visibility\": false,\r\n \"definition\": \"里管能月易被元长称且红方约。往节化许何支段派心组有去体会。工多学后群取铁增声始全务来己从指。风教放型前院识证八才王办眼。件近安之例度从今划方据二造分它近期。只与日查压通出今她军象造种书音。\",\r\n \"related_articles\": [\r\n ],\r\n \"mandarin\": [\r\n ],\r\n \"word\": \"广\"\r\n }\r\n}",
"type": "application/json"
},
"type": "http"
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"id": "postProcessors.0.extractor",
"type": "text/javascript",
"exec": [
"",
" if (JSON.setEnableBigInt) {",
" JSON.setEnableBigInt(undefined);",
" }",
" ",
" try{",
" ",
" const expression = pm.variables.replaceIn(`$.id`);",
" const JSONPath = require('jsonpath-plus').JSONPath;",
" const jsonData = pm.response.json();",
" let value = JSONPath({",
" json: jsonData,",
" path: expression,",
" wrap: false",
" });",
"",
" ",
" if (false && undefined !== undefined) {",
" if (Array.isArray(value)) {",
" value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
" } else {",
" value = undefined;",
" }",
" }",
" ",
" ",
" switch (typeof value) {",
" case 'object':",
" value = JSON.stringify(value);",
" break;",
" default:",
" value = String(value);",
" break;",
" }",
" ",
" pm.environment.set(`word_id_2`, value);console.log('已设置环境变量【word_id_2】,值为 【' + value + '】')",
" } catch(e) {",
" e.message = '提取变量【word_id_2】出错: ' + e.message;",
" throw e;",
" }",
" ",
" "
]
}
}
],
"responseDefinition": {
"id": 4275786,
"createdAt": "2021-07-31T14:43:25.000Z",
"updatedAt": "2021-08-02T15:13:44.000Z",
"deletedAt": null,
"apiDetailId": 5349877,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
}
},
"required": [
"id"
]
},
"defaultEnable": true,
"projectId": 0,
"ordering": 1,
"schemaDefinitions": {}
},
"requestDefinition": {
"jsonSchema": {
"type": "object",
"properties": {
"word": {
"$ref": "#/definitions/1078257"
}
},
"required": [
"word"
],
"description": "related为id列表"
}
},
"metaInfo": {
"httpApiId": 5349877,
"httpApiCaseId": 66566332,
"httpApiName": "WD0102 管理员上传新词语",
"httpApiPath": "/words",
"httpApiMethod": "post",
"httpApiCaseName": "WD0102 管理员上传新词语",
"id": "46f4348d-aa77-456e-9c53-9862a3005895",
"type": "http"
},
"type": "http",
"protocolProfileBehavior": {
"useWhatWGUrlParser": false,
"disableUrlEncoding": false
}
},
{
"id": "ff95e189-2997-4583-a81a-0aeff98db89f",
"name": "WD0102 管理员上传新词语(WD0102 管理员上传新词语)",
"request": {
"url": {
"protocol": "http",
"port": "8000",
"path": [
"words"
],
"host": [
"127",
"0",
"0",
"1"
],
"query": [],
"variable": []
},
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "User-Agent",
"value": "Apifox/1.0.0 (https://www.apifox.cn)"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"baseUrl": "http://127.0.0.1:8000",
"body": {
"mode": "raw",
"raw": "{\r\n \"word\": {\r\n \"standard_ipa\": \"anim est ut quis occaecat\",\r\n \"standard_pinyin\": \"velit\",\r\n \"related_words\": [\r\n ],\r\n \"visibility\": false,\r\n \"definition\": \"加证它立处接件正共人就工想经究。进委转例名根并情拉将什三思。具行素信名打社极称准造定队从通件酸金。农听群子内直育第清场真广合火外属共你。\",\r\n \"annotation\": \"身题眼员计低两书受看比至。间需元能她全改才调海界九放型。她七基今们石影儿党革对南造情公习参离。效你阶林制象去光参好想别马保候量工。即根要老色观它自府部立分设素百取受。\",\r\n \"related_articles\": [\r\n ],\r\n \"mandarin\": [\r\n \"严\",\r\n \"参\",\r\n \"学\",\r\n \"农\",\r\n \"思\"\r\n ],\r\n \"word\": \"完\"\r\n }\r\n}",
"type": "application/json"
},
"type": "http"
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"id": "postProcessors.0.extractor",
"type": "text/javascript",
"exec": [
"",
" if (JSON.setEnableBigInt) {",
" JSON.setEnableBigInt(undefined);",
" }",
" ",
" try{",
" ",
" const expression = pm.variables.replaceIn(`$.id`);",
" const JSONPath = require('jsonpath-plus').JSONPath;",
" const jsonData = pm.response.json();",
" let value = JSONPath({",
" json: jsonData,",
" path: expression,",
" wrap: false",
" });",
"",
" ",
" if (false && undefined !== undefined) {",
" if (Array.isArray(value)) {",
" value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
" } else {",
" value = undefined;",
" }",
" }",
" ",
" ",
" switch (typeof value) {",
" case 'object':",
" value = JSON.stringify(value);",
" break;",
" default:",
" value = String(value);",
" break;",
" }",
" ",
" pm.environment.set(`word_id_3`, value);console.log('已设置环境变量【word_id_3】,值为 【' + value + '】')",
" } catch(e) {",
" e.message = '提取变量【word_id_3】出错: ' + e.message;",
" throw e;",
" }",
" ",
" "
]
}
}
],
"responseDefinition": {
"id": 4275786,
"createdAt": "2021-07-31T14:43:25.000Z",
"updatedAt": "2021-08-02T15:13:44.000Z",
"deletedAt": null,
"apiDetailId": 5349877,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
}
},
"required": [
"id"
]
},
"defaultEnable": true,
"projectId": 0,
"ordering": 1,
"schemaDefinitions": {}
},
"requestDefinition": {
"jsonSchema": {
"type": "object",
"properties": {
"word": {
"$ref": "#/definitions/1078257"
}
},
"required": [
"word"
],
"description": "related为id列表"
}
},
"metaInfo": {
"httpApiId": 5349877,
"httpApiCaseId": 66624479,
"httpApiName": "WD0102 管理员上传新词语",
"httpApiPath": "/words",
"httpApiMethod": "post",
"httpApiCaseName": "WD0102 管理员上传新词语",
"id": "0b02a185-767a-450c-a9cd-f0a9628f7acd",
"type": "http"
},
"type": "http",
"protocolProfileBehavior": {
"useWhatWGUrlParser": false,
"disableUrlEncoding": false
}
},
{
"id": "a90c3c82-442e-453a-b487-8c31807b9dc8",
"name": "PN0102 增加一条语音(PN0102 增加一条语音)",
"request": {
"url": {
"protocol": "http",
"port": "8000",
"path": [
"pronunciation"
],
"host": [
"127",
"0",
"0",
"1"
],
"query": [],
"variable": []
},
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "User-Agent",
"value": "Apifox/1.0.0 (https://www.apifox.cn)"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"baseUrl": "http://127.0.0.1:8000",
"body": {
"mode": "raw",
"raw": "{\n \"pronunciation\": {\n \"source\": \"https://nyyr.lb/rfaflei\",\n \"town\": \"望花区\",\n \"county\": \"河西区\",\n \"ipa\": \"gwn\",\n \"word\": \"{{word_id_1}}\",\n \"pinyin\": \"aqwp\"\n }\n}",
"type": "application/json"
},
"type": "http"
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"id": "postProcessors.0.extractor",
"type": "text/javascript",
"exec": [
"",
" if (JSON.setEnableBigInt) {",
" JSON.setEnableBigInt(undefined);",
" }",
" ",
" try{",
" ",
" const expression = pm.variables.replaceIn(`$.id`);",
" const JSONPath = require('jsonpath-plus').JSONPath;",
" const jsonData = pm.response.json();",
" let value = JSONPath({",
" json: jsonData,",
" path: expression,",
" wrap: false",
" });",
"",
" ",
" if (false && undefined !== undefined) {",
" if (Array.isArray(value)) {",
" value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
" } else {",
" value = undefined;",
" }",
" }",
" ",
" ",
" switch (typeof value) {",
" case 'object':",
" value = JSON.stringify(value);",
" break;",
" default:",
" value = String(value);",
" break;",
" }",
" ",
" pm.environment.set(`pro_id`, value);console.log('已设置环境变量【pro_id】,值为 【' + value + '】')",
" } catch(e) {",
" e.message = '提取变量【pro_id】出错: ' + e.message;",
" throw e;",
" }",
" ",
" "
]
}
}
],
"responseDefinition": {
"id": 4281313,
"createdAt": "2021-08-01T14:30:48.000Z",
"updatedAt": "2021-08-04T15:16:39.000Z",
"deletedAt": null,
"apiDetailId": 5352384,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"title": "发音id"
}
},
"required": [
"id"
]
},
"defaultEnable": true,
"projectId": 0,
"ordering": 1,
"schemaDefinitions": {}
},
"requestDefinition": {
"jsonSchema": {
"type": "object",
"properties": {
"pronunciation": {
"$ref": "#/definitions/1078258"
}
},
"required": [
"pronunciation"
]
}
},
"metaInfo": {
"httpApiId": 5352384,
"httpApiCaseId": 66519248,
"httpApiName": "PN0102 增加一条语音",
"httpApiPath": "/pronunciation",
"httpApiMethod": "post",
"httpApiCaseName": "PN0102 增加一条语音",
"id": "2c04eb6f-6f61-4b4b-8876-371cd7d74350",
"type": "http"
},
"type": "http",
"protocolProfileBehavior": {
"useWhatWGUrlParser": false,
"disableUrlEncoding": false
}
},
{
"id": "7d4b96b6-f4c4-4179-a754-0f3e9aeaa7fd",
"name": "PN0205 语音上传榜单(PN0205 语音上传榜单)",
"request": {
"url": {
"protocol": "http",
"port": "8000",
"path": [
"pronunciation",
"ranking"
],
"host": [
"127",
"0",
"0",
"1"
],
"query": [
{
"disabled": false,
"key": "days",
"value": "7"
},
{
"disabled": false,
"key": "page",
"value": "1"
},
{
"disabled": false,
"key": "pageSize",
"value": "10"
}
],
"variable": []
},
"header": [
{
"key": "token",
"value": "{{token}}"
},
{
"key": "User-Agent",
"value": "Apifox/1.0.0 (https://www.apifox.cn)"
}
],
"method": "GET",
"baseUrl": "http://127.0.0.1:8000",
"body": {},
"type": "http"
},
"response": [],
"event": [],
"responseDefinition": {
"id": 145978331,
"createdAt": "2023-01-06T13:56:14.000Z",
"updatedAt": "2023-01-16T12:56:03.000Z",
"deletedAt": null,
"apiDetailId": 57535259,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"ranking": {
"type": "array",
"items": {
"type": "object",
"properties": {
"contributor": {
"$ref": "#/definitions/1077996",
"title": "贡献者",
"x-apifox-overrides": {}
},
"amount": {
"type": "integer",
"title": "贡献条数"
}
},
"x-apifox-orders": [
"contributor",
"amount"
],
"required": [
"contributor",
"amount"
]
}
},
"me": {
"type": "object",
"properties": {
"amount": {
"type": "integer",
"title": "登录用户自己的上传数量",
"description": "未登录返回0"
},
"rank": {
"type": "integer",
"title": "登录用户自己的排名",
"description": "未登录返回0"
}
},
"x-apifox-orders": [
"amount",
"rank"
],
"required": [
"amount",
"rank"
]
}
},
"x-apifox-orders": [
"ranking",
"me"
],
"required": [
"ranking",
"me"
]
},
"defaultEnable": true,
"projectId": 404238,
"ordering": 1,
"schemaDefinitions": {
"1077996": {
"type": "object",
"properties": {
"nickname": {
"type": "string",
"mock": {
"mock": "@cname"
},
"title": "用户名"
},
"avatar": {
"type": "string",
"mock": {
"mock": "@image('100x100')"
},
"title": "头像"
},
"id": {
"type": "integer",
"title": "用户id"
}
},
"required": [
"nickname",
"avatar",
"id"
],
"title": "user_simple",
"name": "user_simple"
}
}
},
"requestDefinition": {
"jsonSchema": {}
},
"metaInfo": {
"httpApiId": 57535259,
"httpApiCaseId": 66855540,
"httpApiName": "PN0205 语音上传榜单",
"httpApiPath": "/pronunciation/ranking",
"httpApiMethod": "get",
"httpApiCaseName": "PN0205 语音上传榜单",