Package org.dspace.app.rest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResponseEntity<org.springframework.hateoas.RepresentationModel<?>>post(jakarta.servlet.http.HttpServletRequest request, String uuid, @NotNull String token, List<String> override) This method will merge the data coming from aRegistrationDatainto the current logged-in user.
-
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 aRegistrationDatainto 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 incominguuid- uuid of the epersontoken- registration tokenoverride- fields to override inside from the registration data to the eperson- Returns:
- Throws:
Exception
-