From: Kai Moritz Date: Sun, 12 Jul 2020 12:59:42 +0000 (+0200) Subject: WIP X-Git-Tag: wip-initial~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=94f2f3baf149ba1783ad94d3902fd0a108b39151;p=demos%2Fkafka%2Foutbox WIP --- diff --git a/src/main/java/de/juplo/boot/data/jdbc/UserController.java b/src/main/java/de/juplo/boot/data/jdbc/UserController.java index 513ec5a..cec7b6e 100644 --- a/src/main/java/de/juplo/boot/data/jdbc/UserController.java +++ b/src/main/java/de/juplo/boot/data/jdbc/UserController.java @@ -27,13 +27,12 @@ public class UserController { @PostMapping - public ResponseEntity getVorgang( + public ResponseEntity createUser( ServletUriComponentsBuilder builder, @RequestBody String username) { String sanitizedUsername = UserController.sanitize(username); User user = new User(sanitizedUsername, LocalDateTime.now(), false); repository.save(user); - // TODO: Not-Unique Fehler auslösen UriComponents uri = builder .fromCurrentRequest()