From 85d28659b449b89d1c22254270a40ad2650c9861 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 25 Dec 2022 23:02:47 +0100 Subject: [PATCH] feat: Implemented an endpoint to get the details of a chatroom --- .../de/juplo/kafka/chatroom/api/ChatroomController.java | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.20.1