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: wip~104 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=9ac34b1fa3a42bd22dc6e04478713336be494d8a;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,