From: Kai Moritz Date: Sun, 25 Dec 2022 22:02:47 +0000 (+0100) Subject: feat: Implemented an endpoint to get the details of a chatroom X-Git-Tag: TEST~74 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=85d28659b449b89d1c22254270a40ad2650c9861;p=demos%2Fkafka%2Fchat feat: Implemented an endpoint to get the details of a chatroom --- diff --git a/src/main/java/de/juplo/kafka/chatroom/api/ChatroomController.java b/src/main/java/de/juplo/kafka/chatroom/api/ChatroomController.java index 5fabf363..8ea55406 100644 --- a/src/main/java/de/juplo/kafka/chatroom/api/ChatroomController.java +++ b/src/main/java/de/juplo/kafka/chatroom/api/ChatroomController.java @@ -40,6 +40,12 @@ public class ChatroomController return chatrooms.values(); } + @GetMapping("get/{chatroomId}") + public Chatroom get(@PathVariable UUID chatroomId) + { + return chatrooms.get(chatroomId); + } + @PutMapping("post/{chatroomId}/{username}/{messageId}") public Mono post( @PathVariable UUID chatroomId,