forked from mosip/performance-test-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pre-reg.postman_collection.json
1176 lines (1176 loc) · 40.9 KB
/
Pre-reg.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": "fcb24a89-6c12-4544-a0f7-bd5c14d94d67",
"name": "Pre-reg",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Login Service",
"item": [
{
"name": "SendOTP",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.login.sendotp\",\r\n \"version\": \"1.0\",\r\n \"requesttime\": \"{{reqTime}}\",\r\n \"request\": {\r\n \"userId\": \"{{preReg_userID}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/login/sendOtp",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"login",
"sendOtp"
]
},
"description": "This will send OTP to registered user"
},
"response": []
},
{
"name": "validate otp",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.login.useridotp\",\r\n \"version\": \"1.0\",\r\n \"requesttime\": \"{{reqTime}}\",\r\n \"request\": {\r\n \"otp\": \"111111\",\r\n \"userId\": \"{{preReg_userID}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/login/validateOtp",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"login",
"validateOtp"
]
},
"description": "to valdtae the otp sent to a registered user"
},
"response": []
},
{
"name": "invalidate token",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/login/invalidateToken",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"login",
"invalidateToken"
]
},
"description": "to invalidate otps sent previously and send a new otp to the user."
},
"response": []
},
{
"name": "login/config",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/login/config",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"login",
"config"
]
},
"description": "This request will load the configuration parameters while loading the pre-registration portal page"
},
"response": []
},
{
"name": "login/refreshconfig",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/login/refreshconfig",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"login",
"refreshconfig"
]
},
"description": "This request will reload the configuration parameters."
},
"response": []
}
]
},
{
"name": "Demographic service",
"item": [
{
"name": "Add applications",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"id\": \"mosip.pre-registration.demographic.create\",\r\n\t\"request\": {\r\n\t\t\"langCode\": \"eng\",\r\n\t\t\"demographicDetails\": {\r\n\t\t\t\"identity\": {\r\n\t\t\t\t\"IDSchemaVersion\": \"0.9\",\r\n\t\t\t\t\"firstName\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"FName\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"middleName\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"MName\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"lastName\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"Lname\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"suffix\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"Mr\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"dateOfBirth\": \"2007/01/01\",\r\n\t\t\t\t\"gender\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"MLE\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"residenceStatus\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"FLP\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"bloodType\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"101\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"maritalStatus\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"101\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"addressLine1\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"ytbfvgb\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"addressLine2\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"tngrbfevd\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"addressLine3\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"bfsd\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"addressLine4\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"rbtfevd\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"province\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"100037\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"City\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"100318\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"Barangay\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"101755\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"postalCode\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"143813\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"caddressLine1\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"caddressLine2\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"caddressLine3\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"caddressLine4\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"cprovince\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"ccity\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"cbarangay\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"cPostalCode\": [{\r\n\t\t\t\t\t\"language\": \"eng\",\r\n\t\t\t\t\t\"value\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\t\"phone\": \"9606139887\",\r\n\t\t\t\t\"email\": \"[email protected]\"\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"version\": \"1.0\",\r\n\t\"requesttime\": \"2020-12-17T05:18:14.919Z\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/applications",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"applications"
]
},
"description": "This request is used to create new pre-registration with demographic details"
},
"response": [
{
"name": "POST/applications",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.demographic.create\",\r\n \"version\": \"1.0\",\r\n \"request\": {\r\n \"langCode\": \"eng\",\r\n \"demographicDetails\": {\r\n \"identity\": {\r\n \"IDSchemaVersion\": 1,\r\n \"fullName\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"mahesh binayak\"\r\n },\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"پُجَ تهَكُر\"\r\n }\r\n ],\r\n \"dateOfBirth\": \"1996/01/01\",\r\n \"gender\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"MLE\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"MLE\"\r\n }\r\n ],\r\n \"addressLine1\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"Green olive villa\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"گرِِن ُلِڤِ ڤِللَ\"\r\n }\r\n ],\r\n \"residenceStatus\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"FR\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"FR\"\r\n }\r\n ],\r\n \"addressLine2\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"22 ananda reddy Layout\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"٢٢ َنَندَ رِددي لَيُُت\"\r\n }\r\n ],\r\n \"addressLine3\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"\"\r\n }\r\n ],\r\n \"region\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"RSK\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"RSK\"\r\n }\r\n ],\r\n \"province\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"KTA\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"KTA\"\r\n }\r\n ],\r\n \"city\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"KNT\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"KNT\"\r\n }\r\n ],\r\n \"zone\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"BNMR\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"BNMR\"\r\n }\r\n ],\r\n \"postalCode\": \"14022\",\r\n \"phone\":\"7008941519\",\r\n \"email\": \"[email protected]\",\r\n \"referenceIdentityNumber\": \" 57905897027539\"\r\n }\r\n }\r\n },\r\n \"requesttime\": \"2020-09-21T11:18:48.393Z\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://qa.mosip.net/preregistration/v1/applications",
"protocol": "https",
"host": [
"qa",
"mosip",
"net"
],
"path": [
"preregistration",
"v1",
"applications"
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.16.1"
},
{
"key": "Date",
"value": "Mon, 21 Sep 2020 09:15:04 GMT"
},
{
"key": "Content-Type",
"value": "application/json;charset=UTF-8"
},
{
"key": "Content-Length",
"value": "173"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "POST, GET, OPTIONS, DELETE, PUT, PATCH"
},
{
"key": "Access-Control-Allow-Headers",
"value": "Date, Content-Type, Accept, X-Requested-With, Authorization, From, X-Auth-Token, Request-Id"
},
{
"key": "Access-Control-Expose-Headers",
"value": "Set-Cookie"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "Cache-Control",
"value": "no-cache, no-store, max-age=0, must-revalidate"
},
{
"key": "Pragma",
"value": "no-cache"
},
{
"key": "Expires",
"value": "0"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
}
],
"cookie": [],
"body": "{\n \"id\": null,\n \"version\": null,\n \"responsetime\": \"2020-09-21T09:15:04.916Z\",\n \"metadata\": null,\n \"response\": null,\n \"errors\": [\n {\n \"errorCode\": \"KER-ATH-401\",\n \"message\": \"Authentication Failed\"\n }\n ]\n}"
}
]
},
{
"name": "Update Applications",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.demographic.update\",\r\n \"version\": \"1.0\",\r\n \"request\": {\r\n \"langCode\": \"eng\",\r\n \"demographicDetails\": {\r\n \"identity\": {\r\n \"IDSchemaVersion\": 1,\r\n \"fullName\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"Test Book appointment\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"پُجَ تهَكُر\"\r\n }\r\n ],\r\n \"dateOfBirth\": \"1996/01/01\",\r\n \"gender\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"MLE\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"MLE\"\r\n }\r\n ],\r\n \"addressLine1\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"A1\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"A1\"\r\n }\r\n ],\r\n \"residenceStatus\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"FR\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"FR\"\r\n }\r\n ],\r\n \"addressLine2\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"22 ananda reddy Layout\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"٢٢ َنَندَ رِددي لَيُُت\"\r\n }\r\n ],\r\n \"addressLine3\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"\"\r\n }\r\n ],\r\n \"region\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"RSK\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"RSK\"\r\n }\r\n ],\r\n \"province\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"KTA\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"KTA\"\r\n }\r\n ],\r\n \"city\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"KNT\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"KNT\"\r\n }\r\n ],\r\n \"zone\": [\r\n {\r\n \"language\": \"eng\",\r\n \"value\": \"BNMR\"\r\n },\r\n {\r\n \"language\": \"ara\",\r\n \"value\": \"BNMR\"\r\n }\r\n ],\r\n \"postalCode\": \"14022\",\r\n \"phone\":\"9606139888\",\r\n \"email\": \"[email protected]\"\r\n }\r\n }\r\n },\r\n \"requesttime\": \"2020-10-16T10:21:25.952Z\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/applications/49730587097638",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"applications",
"49730587097638"
]
},
"description": "This request is used to update pre-registration's demographic details by providing pre-registration id in the path parameter and updated demographic details in request body."
},
"response": []
},
{
"name": "GET Applications with {preRegistrationId}",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/applications/49730587097638",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"applications",
"49730587097638"
]
},
"description": "This request is used to retrieve Pre-Registration demographic data by pre-Registration id provided in request path parameter."
},
"response": []
},
{
"name": "preregistration/applications/status/",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/applications/status/{{preReg_PRID}}",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"applications",
"status",
"{{preReg_PRID}}"
]
},
"description": "This request is used to retrieve pre-registration application status by providing the pre-registration id in request path parameter."
},
"response": []
},
{
"name": "get applications details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/applications",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"applications"
]
},
"description": "This request is used to retrieve all Pre-Registration id, Full name in both language, Status Code, Document details(Only for Proof Of Address), Appointment details and Postal Code by user id from authorization token"
},
"response": []
},
{
"name": "delete applications",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/applications/21504813854659",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"applications",
"21504813854659"
]
},
"description": "This request is used to discard the entire pre-registration details based pre-registration id provided in request path parameter."
},
"response": []
},
{
"name": "Search Pre-redg withr regcenterand From and To Date",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{url}}/preregistration/v1/appointment/preRegistrationId/10008?from_date=2020-06-01&to_date= ",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment",
"preRegistrationId",
"10008"
],
"query": [
{
"key": "from_date",
"value": "2020-06-01"
},
{
"key": "to_date",
"value": " "
}
]
}
},
"response": []
}
]
},
{
"name": "Document-Service",
"item": [
{
"name": "post Document[Upload Doc]",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "Document request",
"value": "{\n \"id\": \"mosip.pre-registration.document.upload\",\n \"version\" : \"1.0\",\n \"requesttime\" : \"2020-10-16T04:30:41.370Z\",\n \"request\" : {\n\t\"docCatCode\" : \"POI\",\n\t\"docTypCode\" : \"CIN\",\n\t\"langCode\" : \"eng\"\n }\n}",
"type": "text"
},
{
"key": "file",
"type": "file",
"src": "/C:/Users/Niyati.Swami/Downloads/Sample.pdf"
}
]
},
"url": {
"raw": "{{url}}/preregistration/v1/documents/34801960526482",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"documents",
"34801960526482"
]
},
"description": "This request is used to upload document with the metadata which include document category code, document type code and document format for a pre-registration Id"
},
"response": []
},
{
"name": "Copy Document",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "formdata",
"formdata": []
},
"url": {
"raw": "{{url}}/preregistration/v1/documents/47534680240327?catCode=POA,POI&sourcePreId=32482751856170",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"documents",
"47534680240327"
],
"query": [
{
"key": "catCode",
"value": "POA,POI"
},
{
"key": "sourcePreId",
"value": "32482751856170"
}
]
},
"description": "This request is used to copy the document from source pre-registration id to destination pre-registration id with the specified document category code.\r\nURL : https://{base_url}/preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId}"
},
"response": []
},
{
"name": "Get All Doc for a PRID",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{url}}/preregistration/v1/documents/preregistration/34801960526482",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"documents",
"preregistration",
"34801960526482"
]
},
"description": "This request used to retrieve all documents metadata associated with particular pre-registration.\r\nURL : https://{base_url}/preregistration/v1/documents/preregistration/{preRegistrationId}"
},
"response": []
},
{
"name": "Get Specific Document for a PRID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/documents/a43b7e00-0f98-11eb-b1e1-93e5372a8cde?preRegistrationId=34801960526482",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"documents",
"a43b7e00-0f98-11eb-b1e1-93e5372a8cde"
],
"query": [
{
"key": "preRegistrationId",
"value": "34801960526482"
}
]
},
"description": "This request used to retrieve the document for a particular document id from the File System server\r\n\r\nURL : GET /documents/{documentId}?preRegistrationId={preRegistrationId}\r\n\"response\":{\r\n \"document\": \"ByteArray\"\r\n}"
},
"response": []
},
{
"name": "Delete ALL Document for a PRID",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/documents/preregistration/51496289576491",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"documents",
"preregistration",
"51496289576491"
]
},
"description": "This request used to delete all the documents which are associated with requested pre-registration id.\r\n\r\nURL : DELETE /documents/preregistration/{preRegsitrationId}\r\nResponse :\r\nAll documents assosiated with requested pre-registration id deleted sucessfully\""
},
"response": []
},
{
"name": "Delete Specific Document",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/documents/271eea29-0d34-11eb-b1e1-978a6bf56ca6?preRegistrationId=51496289576491",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"documents",
"271eea29-0d34-11eb-b1e1-978a6bf56ca6"
],
"query": [
{
"key": "preRegistrationId",
"value": "51496289576491"
}
]
},
"description": "This request used to delete the document for a particular document id from database and File System server\r\n\r\nBaseuRL : DELETE /documents/{documentId}?preRegistrationId={preRegistrationId}"
},
"response": []
}
]
},
{
"name": "DataSync Service",
"item": [
{
"name": "post/sync",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.datasync.fetch.ids\",\r\n \"version\": \"1.0\",\r\n \"requesttime\": \"2020-10-30T08:53:38.460Z\",\r\n \"request\": {\r\n \"registrationCenterId\":\"10001\",\r\n \"fromDate\":\"2020-05-09\",\r\n \"toDate\":\"2021-10-11\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}//preregistration/v1/sync",
"host": [
"{{url}}"
],
"path": [
"",
"preregistration",
"v1",
"sync"
]
},
"description": "This request is used by registration client to retrieve all the pre-registration Ids by the date range of appointment done.\r\n\r\n\r\n"
},
"response": []
},
{
"name": "post/sync/consumedPreRegIds",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.datasync.store\",\r\n \"version\": \"1.0\",\r\n \"requesttime\": \"2020-10-13T07:05:08.850Z\",\r\n \"request\": {\r\n \"preRegistrationIds\": [\r\n \"39236840369827\",\r\n \"62315869042179\"\r\n ]\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/sync/consumedPreRegIds",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"sync",
"consumedPreRegIds"
]
},
"description": "This request is used by registration processor, to retrieve all processed pre-registration ids and store in pre-registration database so that after batch jon run , job will delete records from main table and move to history table(consumed)."
},
"response": []
},
{
"name": "get sync/preregistrationid",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://sandbox.mosip.net/preregistration/v1/sync/49018596730537",
"protocol": "https",
"host": [
"sandbox",
"mosip",
"net"
],
"path": [
"preregistration",
"v1",
"sync",
"49018596730537"
]
},
"description": "This request is used by registration client to retrieve particular pre-registration data based on a pre-registration id."
},
"response": []
}
],
"description": "This service enables Pre-Registration to a registration client, request to retrieve all pre-registration ids based on registration client id, appointment date and an user type.",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "Booking service",
"item": [
{
"name": "GET /appointment/availability/sync",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/appointment/availability/sync",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment",
"availability",
"sync"
]
},
"description": "This request is used to synchronize booking slots availability table with master data."
},
"response": []
},
{
"name": "Book an appointment for multiple pre-reg id",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.booking.book\",\r\n \"version\": \"1.0\",\r\n \"requesttime\": \"2020-12-17T06:24:26.040Z\",\r\n \"request\":{\r\n \t\"bookingRequest\": [\r\n \t\t{\r\n \t\t\"preRegistrationId\":\"27361295179021\",\r\n \"registration_center_id\": \"10002\",\r\n \"appointment_date\": \"2020-12-19\",\r\n \"time_slot_from\": \"08:00:00\",\r\n \"time_slot_to\": \"08:15:00\"\r\n }\r\n\r\n \r\n ]}\r\n} "
},
"url": {
"raw": "{{url}}/preregistration/v1/appointment",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment"
]
},
"description": "This request is used to book mulitple registration centers. If the appointment data exists for the requested pre-registration ids, it will cancel it and update the new appointment data. If no appointment data then it will book an appointment for specified registration center and time slot."
},
"response": []
},
{
"name": "Book an appointment for multiple pre-reg id Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.booking.book\",\r\n \"version\": \"1.0\",\r\n \"requesttime\": \"2020-07-30T06:24:26.040Z\",\r\n \"request\":{\r\n \t\"bookingRequest\": [\r\n \t\t{\r\n \t\t\"preRegistrationId\":\"47127049137238\",\r\n \"registration_center_id\": \"10008\",\r\n \"appointment_date\": \"2020-08-03\",\r\n \"time_slot_from\": \"14:15:00\",\r\n \"time_slot_to\": \"14:30:00\"\r\n },\r\n {\r\n \t\t\"preRegistrationId\":\"42967154728920\",\r\n \"registration_center_id\": \"10007\",\r\n \"appointment_date\": \"2020-08-01\",\r\n \"time_slot_from\": \"12:45:00\",\r\n \"time_slot_to\": \"13:00:00\"\r\n }\r\n \r\n ]}\r\n} "
},
"url": {
"raw": "{{url}}/preregistration/v1/appointment",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment"
]
},
"description": "This request is used to book mulitple registration centers. If the appointment data exists for the requested pre-registration ids, it will cancel it and update the new appointment data. If no appointment data then it will book an appointment for specified registration center and time slot."
},
"response": []
},
{
"name": "Cancel Appointment for PRID",
"request": {
"method": "PUT",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/appointment/63809568256172",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment",
"63809568256172"
]
},
"description": "This request used to cancel the appointment. Which will retrieve the appointment details for the specified pre-registration id,if appointment data exists update the availability for the slot by increasing the value and delete the record from the table and update the demographic record status \"Pending_Appointment\".\r\n\r\nURL : PUT /appointment/{preRegistrationId} /cancel appointment."
},
"response": []
},
{
"name": "GET /appointment/{preRegistrationId} ",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/appointment/availability/10029",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment",
"availability",
"10029"
]
},
"description": "This request is to retrieve Pre-Registration appointment details by pre-Registration id."
},
"response": []
},
{
"name": "GET /appointment/availability/{registrationCenterId} ",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/appointment/availability/7777",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment",
"availability",
"7777"
]
},
"description": "This request is used to retrieve all appointment slots available for booking based on the specified registration center id."
},
"response": []
},
{
"name": "GET /appointment/preRegistrationId/{registrationCenterId}?from_date=:Date&to_date=:Date.",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/preregistration/v1/appointment/preRegistrationId/10004?from_date=2021-02-17&to_date=2021-03-18",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"appointment",
"preRegistrationId",
"10004"
],
"query": [
{
"key": "from_date",
"value": "2021-02-17"
},
{
"key": "to_date",
"value": "2021-03-18"
}
]
},
"description": " This request is used to retrieve all pre-registration ids available for specified registration center and date range"
},
"response": []
}
],
"description": "This service details used by Pre-Registration portal to book an appointment by providing his/her basic appointment details.\r\n"
},
{
"name": "BatchJob Service",
"item": [
{
"name": "PUT /expiredStatus",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.batchjob.service.expired\",\r\n \"version\": \"1.0\",\r\n \"responsetime\": \"2020-09-22T10:15:55.303Z\",\r\n \"response\": \"Registration appointment status updated to expired successfully\",\r\n \"errors\": null\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/batch/expiredStatus",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"batch",
"expiredStatus"
]
},
"description": "This request is used to update status of pre-registration ids appointment to expired status in database. Batch service will expire all the appointments from date before exceution date till the last execution date of batch job"
},
"response": []
},
{
"name": "PUT /consumedStatus",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"mosip.pre-registration.batchjob.service.consumed\",\r\n \"version\" : \"1.0\",\r\n \"responsetime\": \"2020-09-22T17:31:04.021Z\",\r\n \"response\": \"Demographic status to consumed updated successfully\",\r\n \"errors\":null\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/preregistration/v1/batch/consumedStatus",
"host": [
"{{url}}"
],
"path": [
"preregistration",
"v1",
"batch",