Class PersonalInfoController


  • @RestController
    @RequestMapping("/personal/")
    @CrossOrigin(origins="*")
    public class PersonalInfoController
    extends Object
    • Constructor Detail

      • PersonalInfoController

        @Autowired
        public PersonalInfoController​(PersonalInfoService service)
    • Method Detail

      • getAll

        @PreAuthorize("hasAnyAuthority(\'PORTAL_ADMINISTRATOR\')")
        @RequestMapping(value="/all",
                        method=GET)
        public org.springframework.http.ResponseEntity<List<PersonalInfo>> getAll()
      • getMyPersonalInfo

        @PreAuthorize("hasAnyAuthority(\'REGISTERED_USER\')")
        @RequestMapping(value="/my-info",
                        method=GET)
        public org.springframework.http.ResponseEntity<PersonalInfo> getMyPersonalInfo()
      • savePersonalInfo

        @PreAuthorize("hasAnyAuthority(\'REGISTERED_USER\')")
        @RequestMapping(value="/save",
                        method=POST)
        public org.springframework.http.ResponseEntity<PersonalInfo> savePersonalInfo​(@RequestBody
                                                                                      PersonalInfo personalInfo)