w-web-api 1.0.10 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/dist/css/{app.c0e1f74a.css → app.5eff8f8a.css} +1 -1
- package/dist/index.html +1 -1
- package/dist/js/app.a2249856.js +2 -0
- package/dist/js/app.a2249856.js.map +1 -0
- package/dist/js/{chunk-vendors.8193f50a.js → chunk-vendors.36762e7b.js} +1 -1
- package/dist/js/{chunk-vendors.8193f50a.js.map → chunk-vendors.36762e7b.js.map} +1 -1
- package/dist/w-web-api.umd.js +2 -2
- package/dist/w-web-api.umd.js.map +1 -1
- package/docs/WWebApi.html +2 -2
- package/docs/WWebApi.mjs.html +39 -13
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/server/WWebApi.mjs +38 -12
- package/server/filePathToCode.mjs +9 -0
- package/server/provideApis.mjs +0 -7
- package/src/components/LayoutContentList.vue +23 -3
- package/src/schema/tables/apis.mjs +114 -57
- package/tableTags-web-api.json +1 -1
- package/dist/js/app.6ec60f77.js +0 -2
- package/dist/js/app.6ec60f77.js.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import map from 'lodash/map'
|
|
2
2
|
import keys from 'lodash/keys'
|
|
3
|
-
import get from 'lodash/get'
|
|
3
|
+
// import get from 'lodash/get'
|
|
4
4
|
import genID from 'wsemi/src/genID.mjs'
|
|
5
5
|
import dtmapping from 'wsemi/src/dtmapping.mjs'
|
|
6
6
|
import dtpick from 'wsemi/src/dtpick.mjs'
|
|
7
7
|
import nowms2str from 'wsemi/src/nowms2str.mjs'
|
|
8
8
|
import now2strp from 'wsemi/src/now2strp.mjs'
|
|
9
9
|
import isestr from 'wsemi/src/isestr'
|
|
10
|
+
import filePathToCode from '../../../server/filePathToCode.mjs'
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
let keyTable = 'apis'
|
|
@@ -129,7 +130,7 @@ let funTest = () => {
|
|
|
129
130
|
| paramB | DOUBLE | 123.456 |
|
|
130
131
|
`,
|
|
131
132
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
132
|
-
'mdOutputParams': `###
|
|
133
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
133
134
|
| 參數 | 型別 | 範例 |
|
|
134
135
|
| -- | -- | -- |
|
|
135
136
|
| id | STRING | id-for-test |
|
|
@@ -137,6 +138,7 @@ let funTest = () => {
|
|
|
137
138
|
| color | STRING | #f26 |
|
|
138
139
|
| paramA | INTEGER | 321 |
|
|
139
140
|
| paramB | DOUBLE | 654.321 |
|
|
141
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
140
142
|
`,
|
|
141
143
|
'outputExample': `
|
|
142
144
|
[
|
|
@@ -145,21 +147,24 @@ let funTest = () => {
|
|
|
145
147
|
"weight": 12.3,
|
|
146
148
|
"color": "#f26",
|
|
147
149
|
"paramA": 101,
|
|
148
|
-
"paramB": 0.01
|
|
150
|
+
"paramB": 0.01,
|
|
151
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
149
152
|
},
|
|
150
153
|
{
|
|
151
154
|
"id": "id-for-test-2",
|
|
152
155
|
"weight": 22.3,
|
|
153
156
|
"color": "#2f6",
|
|
154
157
|
"paramA": 102,
|
|
155
|
-
"paramB": 1.01
|
|
158
|
+
"paramB": 1.01,
|
|
159
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
156
160
|
},
|
|
157
161
|
{
|
|
158
162
|
"id": "id-for-test-3",
|
|
159
163
|
"weight": 32.3,
|
|
160
164
|
"color": "#26f",
|
|
161
165
|
"paramA": 103,
|
|
162
|
-
"paramB": 2.01
|
|
166
|
+
"paramB": 2.01,
|
|
167
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
163
168
|
}
|
|
164
169
|
]
|
|
165
170
|
`,
|
|
@@ -185,7 +190,7 @@ let funTest = () => {
|
|
|
185
190
|
| paramB | DOUBLE | 123.456 |
|
|
186
191
|
`,
|
|
187
192
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
188
|
-
'mdOutputParams': `###
|
|
193
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
189
194
|
| 參數 | 型別 | 範例 |
|
|
190
195
|
| -- | -- | -- |
|
|
191
196
|
| id | STRING | id-for-test |
|
|
@@ -193,6 +198,7 @@ let funTest = () => {
|
|
|
193
198
|
| color | STRING | #f26 |
|
|
194
199
|
| paramA | INTEGER | 321 |
|
|
195
200
|
| paramB | DOUBLE | 654.321 |
|
|
201
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
196
202
|
`,
|
|
197
203
|
'outputExample': `
|
|
198
204
|
[
|
|
@@ -201,21 +207,24 @@ let funTest = () => {
|
|
|
201
207
|
"weight": 12.3,
|
|
202
208
|
"color": "#f26",
|
|
203
209
|
"paramA": 101,
|
|
204
|
-
"paramB": 0.01
|
|
210
|
+
"paramB": 0.01,
|
|
211
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
205
212
|
},
|
|
206
213
|
{
|
|
207
214
|
"id": "id-for-test-2",
|
|
208
215
|
"weight": 22.3,
|
|
209
216
|
"color": "#2f6",
|
|
210
217
|
"paramA": 102,
|
|
211
|
-
"paramB": 1.01
|
|
218
|
+
"paramB": 1.01,
|
|
219
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
212
220
|
},
|
|
213
221
|
{
|
|
214
222
|
"id": "id-for-test-3",
|
|
215
223
|
"weight": 32.3,
|
|
216
224
|
"color": "#26f",
|
|
217
225
|
"paramA": 103,
|
|
218
|
-
"paramB": 2.01
|
|
226
|
+
"paramB": 2.01,
|
|
227
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
219
228
|
}
|
|
220
229
|
]
|
|
221
230
|
`,
|
|
@@ -241,7 +250,7 @@ let funTest = () => {
|
|
|
241
250
|
| paramB | DOUBLE | 123.456 |
|
|
242
251
|
`,
|
|
243
252
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
244
|
-
'mdOutputParams': `###
|
|
253
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
245
254
|
| 參數 | 型別 | 範例 |
|
|
246
255
|
| -- | -- | -- |
|
|
247
256
|
| id | STRING | id-for-test |
|
|
@@ -249,6 +258,7 @@ let funTest = () => {
|
|
|
249
258
|
| color | STRING | #f26 |
|
|
250
259
|
| paramA | INTEGER | 321 |
|
|
251
260
|
| paramB | DOUBLE | 654.321 |
|
|
261
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
252
262
|
`,
|
|
253
263
|
'outputExample': `
|
|
254
264
|
[
|
|
@@ -257,21 +267,24 @@ let funTest = () => {
|
|
|
257
267
|
"weight": 12.3,
|
|
258
268
|
"color": "#f26",
|
|
259
269
|
"paramA": 101,
|
|
260
|
-
"paramB": 0.01
|
|
270
|
+
"paramB": 0.01,
|
|
271
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
261
272
|
},
|
|
262
273
|
{
|
|
263
274
|
"id": "id-for-test-2",
|
|
264
275
|
"weight": 22.3,
|
|
265
276
|
"color": "#2f6",
|
|
266
277
|
"paramA": 102,
|
|
267
|
-
"paramB": 1.01
|
|
278
|
+
"paramB": 1.01,
|
|
279
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
268
280
|
},
|
|
269
281
|
{
|
|
270
282
|
"id": "id-for-test-3",
|
|
271
283
|
"weight": 32.3,
|
|
272
284
|
"color": "#26f",
|
|
273
285
|
"paramA": 103,
|
|
274
|
-
"paramB": 2.01
|
|
286
|
+
"paramB": 2.01,
|
|
287
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
275
288
|
}
|
|
276
289
|
]
|
|
277
290
|
`,
|
|
@@ -297,7 +310,7 @@ let funTest = () => {
|
|
|
297
310
|
| paramB | DOUBLE | 123.456 |
|
|
298
311
|
`,
|
|
299
312
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
300
|
-
'mdOutputParams': `###
|
|
313
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
301
314
|
| 參數 | 型別 | 範例 |
|
|
302
315
|
| -- | -- | -- |
|
|
303
316
|
| id | STRING | id-for-test |
|
|
@@ -305,6 +318,7 @@ let funTest = () => {
|
|
|
305
318
|
| color | STRING | #f26 |
|
|
306
319
|
| paramA | INTEGER | 321 |
|
|
307
320
|
| paramB | DOUBLE | 654.321 |
|
|
321
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
308
322
|
`,
|
|
309
323
|
'outputExample': `
|
|
310
324
|
[
|
|
@@ -313,21 +327,24 @@ let funTest = () => {
|
|
|
313
327
|
"weight": 12.3,
|
|
314
328
|
"color": "#f26",
|
|
315
329
|
"paramA": 101,
|
|
316
|
-
"paramB": 0.01
|
|
330
|
+
"paramB": 0.01,
|
|
331
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
317
332
|
},
|
|
318
333
|
{
|
|
319
334
|
"id": "id-for-test-2",
|
|
320
335
|
"weight": 22.3,
|
|
321
336
|
"color": "#2f6",
|
|
322
337
|
"paramA": 102,
|
|
323
|
-
"paramB": 1.01
|
|
338
|
+
"paramB": 1.01,
|
|
339
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
324
340
|
},
|
|
325
341
|
{
|
|
326
342
|
"id": "id-for-test-3",
|
|
327
343
|
"weight": 32.3,
|
|
328
344
|
"color": "#26f",
|
|
329
345
|
"paramA": 103,
|
|
330
|
-
"paramB": 2.01
|
|
346
|
+
"paramB": 2.01,
|
|
347
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
331
348
|
}
|
|
332
349
|
]
|
|
333
350
|
`,
|
|
@@ -353,7 +370,7 @@ let funTest = () => {
|
|
|
353
370
|
| paramB | DOUBLE | 123.456 |
|
|
354
371
|
`,
|
|
355
372
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
356
|
-
'mdOutputParams': `###
|
|
373
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
357
374
|
| 參數 | 型別 | 範例 |
|
|
358
375
|
| -- | -- | -- |
|
|
359
376
|
| id | STRING | id-for-test |
|
|
@@ -361,6 +378,7 @@ let funTest = () => {
|
|
|
361
378
|
| color | STRING | #f26 |
|
|
362
379
|
| paramA | INTEGER | 321 |
|
|
363
380
|
| paramB | DOUBLE | 654.321 |
|
|
381
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
364
382
|
`,
|
|
365
383
|
'outputExample': `
|
|
366
384
|
[
|
|
@@ -369,21 +387,24 @@ let funTest = () => {
|
|
|
369
387
|
"weight": 12.3,
|
|
370
388
|
"color": "#f26",
|
|
371
389
|
"paramA": 101,
|
|
372
|
-
"paramB": 0.01
|
|
390
|
+
"paramB": 0.01,
|
|
391
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
373
392
|
},
|
|
374
393
|
{
|
|
375
394
|
"id": "id-for-test-2",
|
|
376
395
|
"weight": 22.3,
|
|
377
396
|
"color": "#2f6",
|
|
378
397
|
"paramA": 102,
|
|
379
|
-
"paramB": 1.01
|
|
398
|
+
"paramB": 1.01,
|
|
399
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
380
400
|
},
|
|
381
401
|
{
|
|
382
402
|
"id": "id-for-test-3",
|
|
383
403
|
"weight": 32.3,
|
|
384
404
|
"color": "#26f",
|
|
385
405
|
"paramA": 103,
|
|
386
|
-
"paramB": 2.01
|
|
406
|
+
"paramB": 2.01,
|
|
407
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
387
408
|
}
|
|
388
409
|
]
|
|
389
410
|
`,
|
|
@@ -409,7 +430,7 @@ let funTest = () => {
|
|
|
409
430
|
| paramB | DOUBLE | 123.456 |
|
|
410
431
|
`,
|
|
411
432
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
412
|
-
'mdOutputParams': `###
|
|
433
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
413
434
|
| 參數 | 型別 | 範例 |
|
|
414
435
|
| -- | -- | -- |
|
|
415
436
|
| id | STRING | id-for-test |
|
|
@@ -417,6 +438,7 @@ let funTest = () => {
|
|
|
417
438
|
| color | STRING | #f26 |
|
|
418
439
|
| paramA | INTEGER | 321 |
|
|
419
440
|
| paramB | DOUBLE | 654.321 |
|
|
441
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
420
442
|
`,
|
|
421
443
|
'outputExample': `
|
|
422
444
|
[
|
|
@@ -425,21 +447,24 @@ let funTest = () => {
|
|
|
425
447
|
"weight": 12.3,
|
|
426
448
|
"color": "#f26",
|
|
427
449
|
"paramA": 101,
|
|
428
|
-
"paramB": 0.01
|
|
450
|
+
"paramB": 0.01,
|
|
451
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
429
452
|
},
|
|
430
453
|
{
|
|
431
454
|
"id": "id-for-test-2",
|
|
432
455
|
"weight": 22.3,
|
|
433
456
|
"color": "#2f6",
|
|
434
457
|
"paramA": 102,
|
|
435
|
-
"paramB": 1.01
|
|
458
|
+
"paramB": 1.01,
|
|
459
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
436
460
|
},
|
|
437
461
|
{
|
|
438
462
|
"id": "id-for-test-3",
|
|
439
463
|
"weight": 32.3,
|
|
440
464
|
"color": "#26f",
|
|
441
465
|
"paramA": 103,
|
|
442
|
-
"paramB": 2.01
|
|
466
|
+
"paramB": 2.01,
|
|
467
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
443
468
|
}
|
|
444
469
|
]
|
|
445
470
|
`,
|
|
@@ -465,7 +490,7 @@ let funTest = () => {
|
|
|
465
490
|
| paramB | DOUBLE | 123.456 |
|
|
466
491
|
`,
|
|
467
492
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
468
|
-
'mdOutputParams': `###
|
|
493
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
469
494
|
| 參數 | 型別 | 範例 |
|
|
470
495
|
| -- | -- | -- |
|
|
471
496
|
| id | STRING | id-for-test |
|
|
@@ -473,6 +498,7 @@ let funTest = () => {
|
|
|
473
498
|
| color | STRING | #f26 |
|
|
474
499
|
| paramA | INTEGER | 321 |
|
|
475
500
|
| paramB | DOUBLE | 654.321 |
|
|
501
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
476
502
|
`,
|
|
477
503
|
'outputExample': `
|
|
478
504
|
[
|
|
@@ -481,21 +507,24 @@ let funTest = () => {
|
|
|
481
507
|
"weight": 12.3,
|
|
482
508
|
"color": "#f26",
|
|
483
509
|
"paramA": 101,
|
|
484
|
-
"paramB": 0.01
|
|
510
|
+
"paramB": 0.01,
|
|
511
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
485
512
|
},
|
|
486
513
|
{
|
|
487
514
|
"id": "id-for-test-2",
|
|
488
515
|
"weight": 22.3,
|
|
489
516
|
"color": "#2f6",
|
|
490
517
|
"paramA": 102,
|
|
491
|
-
"paramB": 1.01
|
|
518
|
+
"paramB": 1.01,
|
|
519
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
492
520
|
},
|
|
493
521
|
{
|
|
494
522
|
"id": "id-for-test-3",
|
|
495
523
|
"weight": 32.3,
|
|
496
524
|
"color": "#26f",
|
|
497
525
|
"paramA": 103,
|
|
498
|
-
"paramB": 2.01
|
|
526
|
+
"paramB": 2.01,
|
|
527
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
499
528
|
}
|
|
500
529
|
]
|
|
501
530
|
`,
|
|
@@ -521,7 +550,7 @@ let funTest = () => {
|
|
|
521
550
|
| paramB | DOUBLE | 123.456 |
|
|
522
551
|
`,
|
|
523
552
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
524
|
-
'mdOutputParams': `###
|
|
553
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
525
554
|
| 參數 | 型別 | 範例 |
|
|
526
555
|
| -- | -- | -- |
|
|
527
556
|
| id | STRING | id-for-test |
|
|
@@ -529,6 +558,7 @@ let funTest = () => {
|
|
|
529
558
|
| color | STRING | #f26 |
|
|
530
559
|
| paramA | INTEGER | 321 |
|
|
531
560
|
| paramB | DOUBLE | 654.321 |
|
|
561
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
532
562
|
`,
|
|
533
563
|
'outputExample': `
|
|
534
564
|
[
|
|
@@ -537,21 +567,24 @@ let funTest = () => {
|
|
|
537
567
|
"weight": 12.3,
|
|
538
568
|
"color": "#f26",
|
|
539
569
|
"paramA": 101,
|
|
540
|
-
"paramB": 0.01
|
|
570
|
+
"paramB": 0.01,
|
|
571
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
541
572
|
},
|
|
542
573
|
{
|
|
543
574
|
"id": "id-for-test-2",
|
|
544
575
|
"weight": 22.3,
|
|
545
576
|
"color": "#2f6",
|
|
546
577
|
"paramA": 102,
|
|
547
|
-
"paramB": 1.01
|
|
578
|
+
"paramB": 1.01,
|
|
579
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
548
580
|
},
|
|
549
581
|
{
|
|
550
582
|
"id": "id-for-test-3",
|
|
551
583
|
"weight": 32.3,
|
|
552
584
|
"color": "#26f",
|
|
553
585
|
"paramA": 103,
|
|
554
|
-
"paramB": 2.01
|
|
586
|
+
"paramB": 2.01,
|
|
587
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
555
588
|
}
|
|
556
589
|
]
|
|
557
590
|
`,
|
|
@@ -577,7 +610,7 @@ let funTest = () => {
|
|
|
577
610
|
| paramB | DOUBLE | 123.456 |
|
|
578
611
|
`,
|
|
579
612
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
580
|
-
'mdOutputParams': `###
|
|
613
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
581
614
|
| 參數 | 型別 | 範例 |
|
|
582
615
|
| -- | -- | -- |
|
|
583
616
|
| id | STRING | id-for-test |
|
|
@@ -585,6 +618,7 @@ let funTest = () => {
|
|
|
585
618
|
| color | STRING | #f26 |
|
|
586
619
|
| paramA | INTEGER | 321 |
|
|
587
620
|
| paramB | DOUBLE | 654.321 |
|
|
621
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
588
622
|
`,
|
|
589
623
|
'outputExample': `
|
|
590
624
|
[
|
|
@@ -593,21 +627,24 @@ let funTest = () => {
|
|
|
593
627
|
"weight": 12.3,
|
|
594
628
|
"color": "#f26",
|
|
595
629
|
"paramA": 101,
|
|
596
|
-
"paramB": 0.01
|
|
630
|
+
"paramB": 0.01,
|
|
631
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
597
632
|
},
|
|
598
633
|
{
|
|
599
634
|
"id": "id-for-test-2",
|
|
600
635
|
"weight": 22.3,
|
|
601
636
|
"color": "#2f6",
|
|
602
637
|
"paramA": 102,
|
|
603
|
-
"paramB": 1.01
|
|
638
|
+
"paramB": 1.01,
|
|
639
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
604
640
|
},
|
|
605
641
|
{
|
|
606
642
|
"id": "id-for-test-3",
|
|
607
643
|
"weight": 32.3,
|
|
608
644
|
"color": "#26f",
|
|
609
645
|
"paramA": 103,
|
|
610
|
-
"paramB": 2.01
|
|
646
|
+
"paramB": 2.01,
|
|
647
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
611
648
|
}
|
|
612
649
|
]
|
|
613
650
|
`,
|
|
@@ -633,7 +670,7 @@ let funTest = () => {
|
|
|
633
670
|
| paramB | DOUBLE | 123.456 |
|
|
634
671
|
`,
|
|
635
672
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
636
|
-
'mdOutputParams': `###
|
|
673
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
637
674
|
| 參數 | 型別 | 範例 |
|
|
638
675
|
| -- | -- | -- |
|
|
639
676
|
| id | STRING | id-for-test |
|
|
@@ -641,6 +678,7 @@ let funTest = () => {
|
|
|
641
678
|
| color | STRING | #f26 |
|
|
642
679
|
| paramA | INTEGER | 321 |
|
|
643
680
|
| paramB | DOUBLE | 654.321 |
|
|
681
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
644
682
|
`,
|
|
645
683
|
'outputExample': `
|
|
646
684
|
[
|
|
@@ -649,21 +687,24 @@ let funTest = () => {
|
|
|
649
687
|
"weight": 12.3,
|
|
650
688
|
"color": "#f26",
|
|
651
689
|
"paramA": 101,
|
|
652
|
-
"paramB": 0.01
|
|
690
|
+
"paramB": 0.01,
|
|
691
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
653
692
|
},
|
|
654
693
|
{
|
|
655
694
|
"id": "id-for-test-2",
|
|
656
695
|
"weight": 22.3,
|
|
657
696
|
"color": "#2f6",
|
|
658
697
|
"paramA": 102,
|
|
659
|
-
"paramB": 1.01
|
|
698
|
+
"paramB": 1.01,
|
|
699
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
660
700
|
},
|
|
661
701
|
{
|
|
662
702
|
"id": "id-for-test-3",
|
|
663
703
|
"weight": 32.3,
|
|
664
704
|
"color": "#26f",
|
|
665
705
|
"paramA": 103,
|
|
666
|
-
"paramB": 2.01
|
|
706
|
+
"paramB": 2.01,
|
|
707
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
667
708
|
}
|
|
668
709
|
]
|
|
669
710
|
`,
|
|
@@ -689,7 +730,7 @@ let funTest = () => {
|
|
|
689
730
|
| paramB | DOUBLE | 123.456 |
|
|
690
731
|
`,
|
|
691
732
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
692
|
-
'mdOutputParams': `###
|
|
733
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
693
734
|
| 參數 | 型別 | 範例 |
|
|
694
735
|
| -- | -- | -- |
|
|
695
736
|
| id | STRING | id-for-test |
|
|
@@ -697,6 +738,7 @@ let funTest = () => {
|
|
|
697
738
|
| color | STRING | #f26 |
|
|
698
739
|
| paramA | INTEGER | 321 |
|
|
699
740
|
| paramB | DOUBLE | 654.321 |
|
|
741
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
700
742
|
`,
|
|
701
743
|
'outputExample': `
|
|
702
744
|
[
|
|
@@ -705,21 +747,24 @@ let funTest = () => {
|
|
|
705
747
|
"weight": 12.3,
|
|
706
748
|
"color": "#f26",
|
|
707
749
|
"paramA": 101,
|
|
708
|
-
"paramB": 0.01
|
|
750
|
+
"paramB": 0.01,
|
|
751
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
709
752
|
},
|
|
710
753
|
{
|
|
711
754
|
"id": "id-for-test-2",
|
|
712
755
|
"weight": 22.3,
|
|
713
756
|
"color": "#2f6",
|
|
714
757
|
"paramA": 102,
|
|
715
|
-
"paramB": 1.01
|
|
758
|
+
"paramB": 1.01,
|
|
759
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
716
760
|
},
|
|
717
761
|
{
|
|
718
762
|
"id": "id-for-test-3",
|
|
719
763
|
"weight": 32.3,
|
|
720
764
|
"color": "#26f",
|
|
721
765
|
"paramA": 103,
|
|
722
|
-
"paramB": 2.01
|
|
766
|
+
"paramB": 2.01,
|
|
767
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
723
768
|
}
|
|
724
769
|
]
|
|
725
770
|
`,
|
|
@@ -745,7 +790,7 @@ let funTest = () => {
|
|
|
745
790
|
| paramB | DOUBLE | 123.456 |
|
|
746
791
|
`,
|
|
747
792
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
748
|
-
'mdOutputParams': `###
|
|
793
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
749
794
|
| 參數 | 型別 | 範例 |
|
|
750
795
|
| -- | -- | -- |
|
|
751
796
|
| id | STRING | id-for-test |
|
|
@@ -753,6 +798,7 @@ let funTest = () => {
|
|
|
753
798
|
| color | STRING | #f26 |
|
|
754
799
|
| paramA | INTEGER | 321 |
|
|
755
800
|
| paramB | DOUBLE | 654.321 |
|
|
801
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
756
802
|
`,
|
|
757
803
|
'outputExample': `
|
|
758
804
|
[
|
|
@@ -761,21 +807,24 @@ let funTest = () => {
|
|
|
761
807
|
"weight": 12.3,
|
|
762
808
|
"color": "#f26",
|
|
763
809
|
"paramA": 101,
|
|
764
|
-
"paramB": 0.01
|
|
810
|
+
"paramB": 0.01,
|
|
811
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
765
812
|
},
|
|
766
813
|
{
|
|
767
814
|
"id": "id-for-test-2",
|
|
768
815
|
"weight": 22.3,
|
|
769
816
|
"color": "#2f6",
|
|
770
817
|
"paramA": 102,
|
|
771
|
-
"paramB": 1.01
|
|
818
|
+
"paramB": 1.01,
|
|
819
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
772
820
|
},
|
|
773
821
|
{
|
|
774
822
|
"id": "id-for-test-3",
|
|
775
823
|
"weight": 32.3,
|
|
776
824
|
"color": "#26f",
|
|
777
825
|
"paramA": 103,
|
|
778
|
-
"paramB": 2.01
|
|
826
|
+
"paramB": 2.01,
|
|
827
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
779
828
|
}
|
|
780
829
|
]
|
|
781
830
|
`,
|
|
@@ -801,7 +850,7 @@ let funTest = () => {
|
|
|
801
850
|
| paramB | DOUBLE | 123.456 |
|
|
802
851
|
`,
|
|
803
852
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
804
|
-
'mdOutputParams': `###
|
|
853
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
805
854
|
| 參數 | 型別 | 範例 |
|
|
806
855
|
| -- | -- | -- |
|
|
807
856
|
| id | STRING | id-for-test |
|
|
@@ -809,6 +858,7 @@ let funTest = () => {
|
|
|
809
858
|
| color | STRING | #f26 |
|
|
810
859
|
| paramA | INTEGER | 321 |
|
|
811
860
|
| paramB | DOUBLE | 654.321 |
|
|
861
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
812
862
|
`,
|
|
813
863
|
'outputExample': `
|
|
814
864
|
[
|
|
@@ -817,21 +867,24 @@ let funTest = () => {
|
|
|
817
867
|
"weight": 12.3,
|
|
818
868
|
"color": "#f26",
|
|
819
869
|
"paramA": 101,
|
|
820
|
-
"paramB": 0.01
|
|
870
|
+
"paramB": 0.01,
|
|
871
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
821
872
|
},
|
|
822
873
|
{
|
|
823
874
|
"id": "id-for-test-2",
|
|
824
875
|
"weight": 22.3,
|
|
825
876
|
"color": "#2f6",
|
|
826
877
|
"paramA": 102,
|
|
827
|
-
"paramB": 1.01
|
|
878
|
+
"paramB": 1.01,
|
|
879
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
828
880
|
},
|
|
829
881
|
{
|
|
830
882
|
"id": "id-for-test-3",
|
|
831
883
|
"weight": 32.3,
|
|
832
884
|
"color": "#26f",
|
|
833
885
|
"paramA": 103,
|
|
834
|
-
"paramB": 2.01
|
|
886
|
+
"paramB": 2.01,
|
|
887
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
835
888
|
}
|
|
836
889
|
]
|
|
837
890
|
`,
|
|
@@ -857,7 +910,7 @@ let funTest = () => {
|
|
|
857
910
|
| paramB | DOUBLE | 123.456 |
|
|
858
911
|
`,
|
|
859
912
|
'inputExample': `http://localhost:11005/getAPIsList?token={token}&id={id}¶mA=123¶mB=123.456`,
|
|
860
|
-
'mdOutputParams': `###
|
|
913
|
+
'mdOutputParams': `### 回傳數據欄位: Array of objects
|
|
861
914
|
| 參數 | 型別 | 範例 |
|
|
862
915
|
| -- | -- | -- |
|
|
863
916
|
| id | STRING | id-for-test |
|
|
@@ -865,6 +918,7 @@ let funTest = () => {
|
|
|
865
918
|
| color | STRING | #f26 |
|
|
866
919
|
| paramA | INTEGER | 321 |
|
|
867
920
|
| paramB | DOUBLE | 654.321 |
|
|
921
|
+
| paramC | STRING | ${filePathToCode('C:\\\\pj\\abc\\filename.pdf')} |
|
|
868
922
|
`,
|
|
869
923
|
'outputExample': `
|
|
870
924
|
[
|
|
@@ -873,21 +927,24 @@ let funTest = () => {
|
|
|
873
927
|
"weight": 12.3,
|
|
874
928
|
"color": "#f26",
|
|
875
929
|
"paramA": 101,
|
|
876
|
-
"paramB": 0.01
|
|
930
|
+
"paramB": 0.01,
|
|
931
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"
|
|
877
932
|
},
|
|
878
933
|
{
|
|
879
934
|
"id": "id-for-test-2",
|
|
880
935
|
"weight": 22.3,
|
|
881
936
|
"color": "#2f6",
|
|
882
937
|
"paramA": 102,
|
|
883
|
-
"paramB": 1.01
|
|
938
|
+
"paramB": 1.01,
|
|
939
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"
|
|
884
940
|
},
|
|
885
941
|
{
|
|
886
942
|
"id": "id-for-test-3",
|
|
887
943
|
"weight": 32.3,
|
|
888
944
|
"color": "#26f",
|
|
889
945
|
"paramA": 103,
|
|
890
|
-
"paramB": 2.01
|
|
946
|
+
"paramB": 2.01,
|
|
947
|
+
"paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"
|
|
891
948
|
}
|
|
892
949
|
]
|
|
893
950
|
`,
|
package/tableTags-web-api.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"apis":"
|
|
1
|
+
{"apis":"lRcqJc"}
|