-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdata_api_V2.postman_collection.json
2218 lines (2218 loc) · 57.6 KB
/
data_api_V2.postman_collection.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
{
"info": {
"_postman_id": "c346de8a-09e7-41af-bdd3-a32853501b59",
"name": "單一身分驗證V2",
"description": "這是 [tpeduSSO](https://github.com/leejoneshane/tpeduSSO) 開發專案所提供的REST服務,用來提供各級學程教育開放資料,資料內容依照個資法規定劃分為:公開資料及個人資料。前者可使用專案授權取得,後者需透過使用者行使同意權方能取得,由於個人資料中包含有未滿13歲之學童個資,因此申請介接專案之廠商或學校,若服務對象包含13歲以下之學童,依法應取得家長之書面同意始能申請介接。\n\n本服務依照各種不同應用場合,提供三種不同的授權方法進行資料介接:專案授權、個資授權、代理授權。不同授權模式之使用時機說明如下:\n* 專案授權:存取無需使用者介入之學校公開資料,此範圍之資料為移除個資之軌跡資料,當須揭露相關當事人時,以其 UUID 代替。\bUUID 可由個資授權及代理授權查詢出真實資料。\n* 個資授權:存取教育人員個資,應經過個資當事人行使同意權才能取得。個資當事人隨時可以透過[服務網站](https://ldap.tp.edu.tw)終止授權,當授權終止時介接專案將無法再取得當事人個資。\n* 代理授權:由依法保存和運用個資之機關學校,因執行法定業務之需求,將其一部份業務委託廠商進行系統開發時,可以無需個資當事人同意利用其個資,詳細規定請參閱個資法。為滿足此需求,系統提供代理授權功能。使用方法為:學校系統管理人員透過[服務網站](https://ldap.tp.edu.tw)建立個人存取金鑰,將個人存取金鑰交付廠商,廠商可透過此金鑰存取學校系統管理人員所設定之特定資料範圍。若學校要終止此項授權,只要透過[服務網站](https://ldap.tp.edu.tw)移除該金鑰即可。代理授權對個資當事人權益的影響巨大,請務必進行法律諮詢後再實施。\n\n各種不同授權模式可以存取之資料範圍(scope),描述如下:\n* 專案授權\n\t+ school: 學校公開資料\n* 個資授權\n\t+ me: 讀取姓名及電子郵件\n\t+ email: 讀取電子郵件\n\t+ user: 讀取UUID、身分、姓名、電子郵件、手機號碼,修改電子郵件、手機號碼\n\t+ idno: 讀取身分證字號\n\t+ profile: 讀取身分、所屬機構、單位職稱、任教班級、任教科目、級任班級、就讀年班座號\n\t+ account: 修改帳號及密碼\n* 代理授權\n\t+ schoolAdmin: 讀取全校所有人員個資,更新學校資訊以及增刪學校人員\n\n各項資料範圍所對應之資料物件列舉如下:\n* school\n\t+ api/school: 取得所有機關學校列表\n\t+ api/school/{{dc}}: 取得指定學校之基本資料\n\t+ api/school/{{dc}}/teachers: 取得指定學校之所有教職員列表\n\t+ api/school/{{dc}}/subject: 取得指定學校之所有教學科目列表\n\t+ api/school/{{dc}}/subject/{{subj}}: 取得指定教學科目之基本資料\n\t+ api/school/{{dc}}/subject/{{subj}}/teachers: 取得指定教學科目之所有任教老師列表\n\t+ api/school/{{dc}}/subject/{{subj}}/classes: 取得指定教學科目之所有授課班級列表\n\t+ api/school/{{dc}}/ou: 取得指定學校之所有行政部門列表\n\t+ api/school/{{dc}}/ou/{{ou}}: 取得指定部門之基本資料\n\t+ api/school/{{dc}}/ou/{{ou}}/teachers: 取得指定部門之所有在職人員列表\n\t+ api/school/{{dc}}/ou/{{ou}}/role: 取得指定部門之所有職務列表\n\t+ api/school/{{dc}}/ou/{{ou}}/role/{{role}}: 取得指定職務之基本資料\n\t+ api/school/{{dc}}/ou/{{ou}}/role/{{role}}/teachers: 取得指定職務之所有在職人員列表\n\t+ api/school/{{dc}}/class: 取得指定學校之所有班級列表\n\t+ api/school/{{dc}}/class/{{class}}: 取得指定班級之基本資料\n\t+ api/school/{{dc}}/class/{{class}}/teachers: 取得指定班級之所有任課教師列表\n\t+ api/school/{{dc}}/class/{{class}}/students: 取得指定班級之所有學生列表\n\t+ api/school/{{dc}}/class/{{class}}/subjects: 取得指定班級之所有教學科目列表\n* me\n\t+ api/me: 取得登入者之真實姓名及電子郵件\n* email\n\t+ api/email: 取得登入者之電子郵件\n* user\n\t+ api/user: 取得登入者之UUID、身分、姓名、電子郵件、手機號碼,修改電子郵件、手機號碼\n* idno\n\t+ api/idno: 取得登入者之身分證字號\n* profile\n\t+ api/profile: 取得登入者之身分、所屬機構、單位職稱、任教班級、任教科目、級任班級、就讀年班座號等資訊\n* account\n\t+ api/account: 修改登入者的帳號及密碼\n* schoolAdmin\n\t+ api/school/{{dc}}: 修改指定學校之基本資料\n\t+ api/school/{{dc}}/people: 新增人員到指定學校\n\t+ api/school/{{dc}}/people/{{uuid}}: 修改或刪除指定人員",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "專案授權",
"item": [
{
"name": "專案驗證",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\"grant_type\": \"client_credentials\",\n\"client_id\": 27,\n\"client_secret\": \"your_project_secret\",\n\"scope\": \"school\"\n}"
},
"url": {
"raw": "https://ldap.tp.edu.tw/oauth/token",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"oauth",
"token"
]
}
},
"response": []
},
{
"name": "取得學校列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school"
]
},
"description": "學校列表包含以下資料欄位:\n* o: 機關學校之系統代號\n* st: 所在行政區\n* tpUniformNumbers: 全國教育機關學校統一編號\n* description: 機關學校之全銜"
},
"response": []
},
{
"name": "取得指定學校資料",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}"
]
},
"description": "學校基本資料包含以下資料欄位:\n* o: 機關學校系統代碼\n* businessCategory: 隸屬學程\n* st: 所在行政區\n* description: 機關學校全銜\n* facsimileTelephoneNumber: 傳真號碼\n* telephoneNumber: 電話號碼\n* postalCode: 郵遞區號\n* street: 郵遞地址\n* postOfficeBox: 教育局聯絡箱編號\n* wWWHomePage: 官方網站\n* tpUniformNumbers: 全國教育機關學校統一編號\n* tpIpv4: IPv4 網址範圍\n* tpIpv6: IPv6 網址範圍"
},
"response": []
},
{
"name": "取得教師列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/teachers",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"teachers"
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "取得處室列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/ou",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"ou"
]
},
"description": "處室列表包含以下資料欄位:\n* ou: 組織單位代號\n* description: 單位名稱"
},
"response": []
},
{
"name": "取得指定處室資料",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/ou/{{ou}}",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"ou",
"{{ou}}"
]
},
"description": "處室基本資料包含以下資料欄位:\n* ou: 組織單位代號\n* businessCategory: 組織單位類型\n* description: 單位名稱"
},
"response": []
},
{
"name": "取得處室在職人員列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/ou/{{ou}}/teachers",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"ou",
"{{ou}}",
"teachers"
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "取得處室職務列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/ou/{{ou}}/role",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"ou",
"{{ou}}",
"role"
]
},
"description": "職務列表包含以下資料欄位:\n* cn: 職務代號\n* description: 職稱"
},
"response": []
},
{
"name": "取得指定職務資料",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/ou/{{ou}}/role/{{role}}",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"ou",
"{{ou}}",
"role",
"{{role}}"
]
},
"description": "職務基本資料包含以下資料欄位:\n* ou: 隸屬部門代號\n* cn: 職務代號\n* description: 職稱"
},
"response": []
},
{
"name": "取得職務在職人員列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/ou/{{ou}}/role/{{role}}/teachers",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"ou",
"{{ou}}",
"role",
"{{role}}",
"teachers"
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "取得科目列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/subject",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"subject"
]
},
"description": "科目列表包含以下資料欄位:\n* tpSubject: 科目代號\n* tpSubjectDomain: 所屬教學領域\n* description: 科目全名"
},
"response": []
},
{
"name": "取得指定科目資料",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/subject/{{subj}}",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"subject",
"{{subj}}"
]
},
"description": "科目基本資料包含以下資料欄位:\n* tpSubject: 科目代號\n* tpSubjectDomain: 所屬教學領域\n* description: 科目全名"
},
"response": []
},
{
"name": "取得指定科目任教\b老師列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/subject/{{subj}}/teachers",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"subject",
"{{subj}}",
"teachers"
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "取得指定科目授課班級列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/subject/{{subj}}/classes",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"subject",
"{{subj}}",
"classes"
]
},
"description": "回應資料為班級代號陣列"
},
"response": []
},
{
"name": "取得班級列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/class",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"class"
]
},
"description": "班級列表包含以下資料欄位:\n* ou: 組織單位代號\n* description: 班級名稱\n* grade: 年級"
},
"response": []
},
{
"name": "取得指定班級資料",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/class/{{class}}",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"class",
"{{class}}"
]
},
"description": "班級基本資料包含以下資料欄位:\n* ou: 組織單位代號\n* businessCategory: 組織單位類型\n* description: 班級名稱"
},
"response": []
},
{
"name": "取得班級學生列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/class/{{class}}/students",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"class",
"{{class}}",
"students"
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "取得班級授課科目列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/class/{{class}}/subjects",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"class",
"{{class}}",
"subjects"
]
},
"description": "回應資料為科目代號陣列"
},
"response": []
},
{
"name": "取得班級任教教師列表",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/class/{{class}}/teachers",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"class",
"{{class}}",
"teachers"
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "搜尋學校 sid",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school?sid={{sid}}",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school"
],
"query": [
{
"key": "sid",
"value": "{{sid}}"
}
]
},
"description": "學校列表包含以下資料欄位:\n* o: 機關學校之系統代號\n* st: 所在行政區\n* tpUniformNumbers: 全國教育機關學校統一編號\n* description: 機關學校之全銜"
},
"response": []
},
{
"name": "搜尋學校\b行政區",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school?area=中正區",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school"
],
"query": [
{
"key": "area",
"value": "中正區"
}
]
},
"description": "學校列表包含以下資料欄位:\n* o: 機關學校之系統代號\n* st: 所在行政區\n* tpUniformNumbers: 全國教育機關學校統一編號\n* description: 機關學校之全銜"
},
"response": []
},
{
"name": "搜尋學校\b名稱",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school?name=博",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school"
],
"query": [
{
"key": "name",
"value": "博"
}
]
},
"description": "學校列表包含以下資料欄位:\n* o: 機關學校之系統代號\n* st: 所在行政區\n* tpUniformNumbers: 全國教育機關學校統一編號\n* description: 機關學校之全銜"
},
"response": []
},
{
"name": "搜尋人員身分證字號",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/people?idno=P121658036",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"people"
],
"query": [
{
"key": "idno",
"value": "P121658036"
}
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "搜尋學生學號",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/people?type=學生&sysid=107001",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"people"
],
"query": [
{
"key": "type",
"value": "學生"
},
{
"key": "sysid",
"value": "107001"
}
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
},
{
"name": "複合搜尋",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "https://ldap.tp.edu.tw/api/v2/school/{{dc}}/people?type=教師&name=李&gender=1&tel=0988265068&email=gmail.com",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"api",
"v2",
"school",
"{{dc}}",
"people"
],
"query": [
{
"key": "type",
"value": "教師"
},
{
"key": "name",
"value": "李"
},
{
"key": "gender",
"value": "1"
},
{
"key": "tel",
"value": "0988265068"
},
{
"key": "email",
"value": "gmail.com"
}
]
},
"description": "回應資料為 UUID 陣列"
},
"response": []
}
],
"description": "使用專案授權可以讀取學校端所產生之各種公開資訊,專案授權授權需先註冊介接專案並取得專案代號和專案密碼,傳送 POST 請求以便取得存取權杖。詳細欄位格式請參考以下說明。",
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "addTokenTo",
"value": "header",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "f6fe18bb-ec7a-4c17-90c5-9b1a9a30b61e",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "ca5e0308-22ad-43b1-a384-bad96e4a6c85",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "個資授權",
"item": [
{
"name": "導向到登入頁面",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "https://ldap.tp.edu.tw/oauth/authorize?client_id=27&redirect_uri=https://app.getpostman.com/oauth2/callback&response_type=code&scope=*",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"oauth",
"authorize"
],
"query": [
{
"key": "client_id",
"value": "27"
},
{
"key": "redirect_uri",
"value": "https://app.getpostman.com/oauth2/callback"
},
{
"key": "response_type",
"value": "code"
},
{
"key": "scope",
"value": "*"
}
]
}
},
"response": []
},
{
"name": "驗證碼交換金鑰",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"grant_type\": \"authorization_code\",\n \"client_id\": 27,\n \"client_secret\": \"pOxhW7gZU74LeQRZfGkJbRpFsQnpc7SmonmbeUxS\",\n \"redirect_uri\": \"https://app.getpostman.com/oauth2/callback\",\n \"code\": \"your_authorize_code_retrive_from_oauth\"\n}"
},
"url": {
"raw": "https://ldap.tp.edu.tw/oauth/token",
"protocol": "https",
"host": [
"ldap",
"tp",
"edu",
"tw"
],
"path": [
"oauth",
"token"
]
}
},
"response": []
},
{
"name": "更新金鑰",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"grant_type\": \"refresh_token\",\n \"refresh_token\": \"def50200e3503999a4f0413e5bced98cf1c752ad0b7845d1215dde3b83ecd62c87b1e8da0a4b2b139ef4cbcfe7edbb40f9697f6e0300241a3ee49a750bab66e874d5e83c7916ec6040b0790d5d7a6b8525918e295ef1fe8976ab8c89f9b670ef0180838a89698a58a50e363e9e6fc34a1cab6770da39be463eb2c46f90037edf100d5e0cabf774089104d33184ef06f9a889ef82e0ef6ff0bb5367b6a8fd47507a1069058230e7e107513453bfdeb22a258c82c390652115c1c5a0fe717cc0fedf21fe6c3397b138bcc8c8839292fe538cd40066c8f0102b735796f4845cf284a7819348037f695fc2716cd2e1b628187e8f56f9833c536405d3aa618fc29497ca8f7e533f75572fab39f7caa1733415d231b10101260f9356d9eb25583c6769d4b239267aaf7f048f3051ff764362cf7422d77ccb6268411edd283c702df76e5075c72b7a0b815f6649309bed094d5668f89e0df0081f96adb5ff772bc8d2f765f1aacbbbfd6e26baa74cd40c9299d2eaa00adfd6a822ec10678c303c0ae01dd3a22ee43b47aad47fdda5914d3d62bf\",\n \"client_id\": 27,\n \"client_secret\": \"pOxhW7gZU74LeQRZfGkJbRpFsQnpc7SmonmbeUxS\",\n \"scope\": \"me email user profile idno account\"\n}"
},
"url": {
"raw": "https://ldap.tp.edu.tw/oauth/token",