Class RidGeneratorController


  • @RestController
    @CrossOrigin
    public class RidGeneratorController
    extends Object
    Controller class for RID generator.
    Since:
    1.0.0
    Author:
    Ritesh Sinha
    • Constructor Detail

      • RidGeneratorController

        public RidGeneratorController()
    • Method Detail

      • generateRid

        @ResponseFilter
        @GetMapping("/generate/rid/{centerid}/{machineid}")
        @PreAuthorize("hasAnyRole(\'REGISTRATION_PROCESSOR\',\'RESIDENT\')")
        public ResponseWrapper<RidGeneratorResponseDto> generateRid​(@PathVariable("centerid")
                                                                    String centerId,
                                                                    @PathVariable("machineid")
                                                                    String machineId)
        Api to generate RID.
        Parameters:
        centerId - the registration center id.
        machineId - the machine id.
        Returns:
        the response.