Class EPersonRegistrationRestController

java.lang.Object
org.dspace.app.rest.EPersonRegistrationRestController

@RestController @RequestMapping("/api/eperson/epersons") public class EPersonRegistrationRestController extends Object
This controller is responsible to handle RegistrationData of a given EPerson
Author:
Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
  • Constructor Details

    • EPersonRegistrationRestController

      public EPersonRegistrationRestController()
  • Method Details

    • post

      @RequestMapping(method=POST, value="/{uuid}") public ResponseEntity<org.springframework.hateoas.RepresentationModel<?>> post(jakarta.servlet.http.HttpServletRequest request, @PathVariable String uuid, @RequestParam @NotNull @NotNull String token, @RequestParam(required=false) List<String> override) throws Exception
      This method will merge the data coming from a RegistrationData into the current logged-in user.
      The request must have an empty body, and a token parameter should be provided:
        
         curl -X POST http://${dspace.url}/api/eperson/epersons/${id-eperson}?token=${token}&override=${metadata-fields}
              -H "Content-Type: application/json"
              -H "Authorization: Bearer ${bearer-token}"
        
       
      Parameters:
      request - httpServletRequest incoming
      uuid - uuid of the eperson
      token - registration token
      override - fields to override inside from the registration data to the eperson
      Returns:
      Throws:
      Exception