Class PersonalInfoController
- java.lang.Object
-
- eu.dnetlib.developers.controllers.PersonalInfoController
-
@RestController @RequestMapping("/personal/") @CrossOrigin(origins="*") public class PersonalInfoController extends Object
-
-
Constructor Summary
Constructors Constructor Description PersonalInfoController(PersonalInfoService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<List<PersonalInfo>>getAll()org.springframework.http.ResponseEntity<PersonalInfo>getMyPersonalInfo()org.springframework.http.ResponseEntity<PersonalInfo>savePersonalInfo(PersonalInfo personalInfo)
-
-
-
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)
-
-