From 3617a28fbd71e5e462108fbd4339bac3a79882f3 Mon Sep 17 00:00:00 2001 From: selva Date: Fri, 8 Mar 2019 14:29:09 +0000 Subject: [PATCH] standard post method to add/update user --- .../accession/user/rest/AccessioningUserRestController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/uk/ac/ebi/ega/accession/user/rest/AccessioningUserRestController.java b/src/main/java/uk/ac/ebi/ega/accession/user/rest/AccessioningUserRestController.java index 1cd0775..18c8f41 100644 --- a/src/main/java/uk/ac/ebi/ega/accession/user/rest/AccessioningUserRestController.java +++ b/src/main/java/uk/ac/ebi/ega/accession/user/rest/AccessioningUserRestController.java @@ -33,9 +33,8 @@ public class AccessioningUserRestController { @Autowired private AccessioningUserRepository accessioningUserRepository; - @RequestMapping(path = "addOrUpdate", method = {RequestMethod.POST}, - produces = {"application/json"}, consumes = {"application/json"}) - public void saveOrUpdate(@RequestBody AccessioningUser accessioningUser) { + @RequestMapping(method = {RequestMethod.POST}, produces = {"application/json"}, consumes = {"application/json"}) + public void saveUser(@RequestBody AccessioningUser accessioningUser) { accessioningUserRepository.save(accessioningUser); } } \ No newline at end of file