35
35
import org .slf4j .Logger ;
36
36
import org .slf4j .LoggerFactory ;
37
37
import org .springframework .beans .factory .annotation .Autowired ;
38
- import org .springframework .web .bind .annotation .CrossOrigin ;
39
38
import org .springframework .web .bind .annotation .RequestBody ;
40
39
import org .springframework .web .bind .annotation .RequestMapping ;
41
40
import org .springframework .web .bind .annotation .RequestMethod ;
@@ -188,7 +187,6 @@ public void setGovtIdentityTypeService(GovtIdentityTypeService govtIdentityTypeS
188
187
private CallReportsService callReportsService ;
189
188
190
189
@ Operation (summary = "Create a new beneficiary" )
191
- @ CrossOrigin ()
192
190
@ RequestMapping (value = "/create" , method = RequestMethod .POST , produces = "application/json" , consumes = "application/json" , headers = "Authorization" )
193
191
194
192
public String createBeneficiary (
@@ -219,7 +217,6 @@ public String createBeneficiary(
219
217
}
220
218
221
219
@ Operation (summary = "Create a new beneficiary for customization" )
222
- @ CrossOrigin ()
223
220
@ RequestMapping (value = "/createBeneficiary" , method = RequestMethod .POST , produces = "application/json" , consumes = "application/json" , headers = "Authorization" )
224
221
public String createBeneficiary (@ RequestBody String request , HttpServletRequest httpRequest )
225
222
throws JsonMappingException , JsonProcessingException {
@@ -266,7 +263,6 @@ private String checkExtraFields(JsonElement json) {
266
263
return otherFieldsJson .toString ();
267
264
}
268
265
269
- @ CrossOrigin ()
270
266
@ Operation (summary = "Provide the list of beneficiaries based on beneficiary id" )
271
267
@ RequestMapping (value = "/searchUserByID" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
272
268
public String searchUserByID (
@@ -315,7 +311,6 @@ public String searchUserByID(
315
311
}
316
312
317
313
@ Operation (summary = "Provide the list of beneficiaries based on phone number" )
318
- @ CrossOrigin ()
319
314
@ RequestMapping (value = "/searchUserByPhone" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
320
315
public String searchUserByPhone (
321
316
@ Param (value = "{\" phoneNo\" :\" String\" ,\" pageNo\" :\" Integer\" ,\" rowsPerPage\" :\" Integer\" }" ) @ RequestBody String request ,
@@ -346,7 +341,6 @@ public String searchUserByPhone(
346
341
return response .toString ();
347
342
}
348
343
349
- @ CrossOrigin ()
350
344
@ Operation (summary = "Provide the list of beneficiaries based on search criteria" )
351
345
@ RequestMapping (value = "/searchBeneficiary" , method = RequestMethod .POST , headers = "Authorization" )
352
346
public String searchBeneficiary (
@@ -369,7 +363,6 @@ public String searchBeneficiary(
369
363
return output .toString ();
370
364
}
371
365
372
- @ CrossOrigin ()
373
366
@ Operation (summary = "Provide all common data list needed for beneficiary registration" )
374
367
@ RequestMapping (value = "/getRegistrationData" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
375
368
public String getRegistrationData () {
@@ -400,7 +393,6 @@ public String getRegistrationData() {
400
393
return response .toString ();
401
394
}
402
395
403
- @ CrossOrigin ()
404
396
@ Operation (summary = "Provide all common data V1 list needed for beneficiary registration" )
405
397
@ RequestMapping (value = "/getRegistrationDataV1" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
406
398
public String getRegistrationDataV1 (
@@ -435,7 +427,6 @@ public String getRegistrationDataV1(
435
427
return response .toString ();
436
428
}
437
429
438
- @ CrossOrigin ()
439
430
@ Operation (summary = "Update beneficiary details" )
440
431
@ RequestMapping (value = "/update" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
441
432
public String updateBenefciary (
@@ -479,7 +470,6 @@ public String updateBenefciary(
479
470
return response .toString ();
480
471
}
481
472
482
- @ CrossOrigin ()
483
473
@ Operation (summary = "Update beneficiary details" )
484
474
@ RequestMapping (value = "/updateBenefciaryDetails" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
485
475
public String updateBenefciaryDetails (@ RequestBody String benificiaryRequest , HttpServletRequest httpRequest ) {
@@ -514,7 +504,6 @@ public String updateBenefciaryDetails(@RequestBody String benificiaryRequest, Ht
514
504
return response .toString ();
515
505
}
516
506
517
- @ CrossOrigin ()
518
507
@ Operation (summary = "Fetch beneficiary details by phone no" )
519
508
@ RequestMapping (value = "/getBeneficiariesByPhoneNo" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
520
509
public String getBeneficiariesByPhone (@ Param (value = "{\" phoneNo\" :\" String\" }" ) @ RequestBody String request ,
@@ -534,7 +523,6 @@ public String getBeneficiariesByPhone(@Param(value = "{\"phoneNo\":\"String\"}")
534
523
return response .toString ();
535
524
}
536
525
537
- @ CrossOrigin ()
538
526
@ Operation (summary = "Update beneficiary community or education" )
539
527
@ RequestMapping (value = "/updateCommunityorEducation" , method = RequestMethod .POST , produces = MediaType .APPLICATION_JSON , headers = "Authorization" )
540
528
public String updateBenefciaryCommunityorEducation (
@@ -564,7 +552,6 @@ public String updateBenefciaryCommunityorEducation(
564
552
return response .toString ();
565
553
}
566
554
567
- @ CrossOrigin ()
568
555
@ Operation (summary = "Generate beneficiary id" )
569
556
@ RequestMapping (value = "/generateBeneficiaryIDs" , headers = "Authorization" , method = {
570
557
RequestMethod .POST }, produces = { "application/json" })
0 commit comments