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 Details

    • UserInformationController

      public UserInformationController(UserInformationService service)
      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 id
      id - 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 id
      id - 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 id
      id - 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 id
      id - represent the course id
      Returns:
      boolean value success or not