Class UserInformationController
java.lang.Object
callofproject.dev.authentication.controller.UserInformationController
@RestController
@RequestMapping("api/auth/user-info")
public class UserInformationController
extends Object
Authentication Controller
Copyleft (C), 2023, Cal-of-Project-Teams Developers.
All Rights free.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the UserInformationController class. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
removeCourse
(UUID userId, UUID id) Remove course from user.org.springframework.http.ResponseEntity<Object>
removeEducation
(UUID userId, UUID id) Remove education from user.org.springframework.http.ResponseEntity<Object>
removeExperience
(UUID userId, UUID id) Remove experience from user.org.springframework.http.ResponseEntity<Object>
removeLink
(UUID userId, long id) Remove link from user.org.springframework.http.ResponseEntity<Object>
Save course to user.org.springframework.http.ResponseEntity<Object>
Save education to user.org.springframework.http.ResponseEntity<Object>
Save experience to user.org.springframework.http.ResponseEntity<Object>
saveLink
(LinkUpsertDTO dto) Save link to user.
-
Constructor Details
-
UserInformationController
Constructor for the UserInformationController class. It is used to inject dependencies into the controller.- Parameters:
service
- The UserInformationService object to be injected.
-
-
Method Details
-
saveEducation
@PostMapping("upsert/education") public org.springframework.http.ResponseEntity<Object> saveEducation(@RequestBody EducationUpsertDTO dto) Save education to user.- Parameters:
dto
- represent the education information- Returns:
- boolean value success or not
-
saveExperience
@PostMapping("upsert/experience") public org.springframework.http.ResponseEntity<Object> saveExperience(@RequestBody ExperienceUpsertDTO dto) Save experience to user.- Parameters:
dto
- represent the experience information- Returns:
- boolean value success or not
-
saveLink
@PostMapping("upsert/link") public org.springframework.http.ResponseEntity<Object> saveLink(@RequestBody LinkUpsertDTO dto) Save link to user.- Parameters:
dto
- represent the link information- Returns:
- boolean value success or not
-
saveCourse
@PostMapping("upsert/course") public org.springframework.http.ResponseEntity<Object> saveCourse(@RequestBody CourseUpsertDTO dto) Save course to user.- Parameters:
dto
- represent the course information- Returns:
- boolean value success or not
-
removeEducation
@DeleteMapping("delete/education") public org.springframework.http.ResponseEntity<Object> removeEducation(@RequestParam("uid") UUID userId, @RequestParam("id") UUID id) Remove education from user.- Parameters:
userId
- represent the user idid
- represent the education id- Returns:
- boolean value success or not
-
removeExperience
@DeleteMapping("delete/experience") public org.springframework.http.ResponseEntity<Object> removeExperience(@RequestParam("uid") UUID userId, @RequestParam("id") UUID id) Remove experience from user.- Parameters:
userId
- represent the user idid
- represent the experience id- Returns:
- boolean value success or not
-
removeLink
@DeleteMapping("delete/link") public org.springframework.http.ResponseEntity<Object> removeLink(@RequestParam("uid") UUID userId, @RequestParam("id") long id) Remove link from user.- Parameters:
userId
- represent the user idid
- represent the link id- Returns:
- boolean value success or not
-
removeCourse
@DeleteMapping("delete/course") public org.springframework.http.ResponseEntity<Object> removeCourse(@RequestParam("uid") UUID userId, @RequestParam("id") UUID id) Remove course from user.- Parameters:
userId
- represent the user idid
- represent the course id- Returns:
- boolean value success or not
-