GET /chat/messages?roomUUID=A1A1-B2B2&page=0&size=10 HTTP/1.1
+GET /chat/rooms/details?roomUUID=AAAA-BBBB-CCCC-DDDD HTTP/1.1
Host: localhost:8080
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3a14305 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +/docker-compose-chat-test-db.yml +/Dockerfile +/.gradle/ +/build/ +/.idea/ diff --git a/src/docs/asciidoc/index.adoc b/src/docs/asciidoc/index.adoc index 81688f4..7d3782b 100644 --- a/src/docs/asciidoc/index.adoc +++ b/src/docs/asciidoc/index.adoc @@ -21,6 +21,11 @@ operation::chat-controller-test/create-room-fail-test[snippets="http-response,re operation::chat-controller-test/find-by-username-test[snippets="http-request,query-parameters"] ==== 응답 operation::chat-controller-test/find-by-username-test[snippets="http-response,response-fields"] +=== 채팅방 상세 정보 조회 API +==== 요청 +operation::chat-controller-test/find-chat-room-details-test[snippets="http-request,query-parameters"] +==== 응답 +operation::chat-controller-test/find-chat-room-details-test[snippets="http-response,response-fields"] === 채팅방 채팅내역 조회 API ==== 요청 operation::chat-controller-test/find-chat-message-test[snippets="http-request,query-parameters"] diff --git a/src/main/java/kaboo/kaboochat/chat/config/RedisConfig.java b/src/main/java/kaboo/kaboochat/chat/config/RedisConfig.java index cd4276b..71ee3c1 100644 --- a/src/main/java/kaboo/kaboochat/chat/config/RedisConfig.java +++ b/src/main/java/kaboo/kaboochat/chat/config/RedisConfig.java @@ -1,10 +1,8 @@ package kaboo.kaboochat.chat.config; -import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; -import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.listener.ChannelTopic; import org.springframework.data.redis.listener.RedisMessageListenerContainer; @@ -13,6 +11,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer; import kaboo.kaboochat.chat.domain.redis.RedisSubscriber; +import lombok.RequiredArgsConstructor; /** * Redis 설정 클래스 @@ -26,29 +25,10 @@ * @since : 2024/08/17 */ @Configuration +@RequiredArgsConstructor public class RedisConfig { - private final String redisHost; - private final int redisPort; - - public RedisConfig(@Value("${REDIS_HOST}") String redisHost, @Value("${REDIS_PORT}") int redisPort) { - this.redisHost = redisHost; - this.redisPort = redisPort; - } - - /** - * RedisConnectionFactory 빈 생성 - *
- * Lettuce 클라이언트를 사용하여 Redis 서버와의 연결을 생성하고 관리합니다.
- *
- * 이 빈은 Redis 서버와의 연결을 생성하고, 다른 Redis 관련 빈들이 이 연결을 사용하여 Redis와 통신하게 됩니다.
- *
GET /chat/messages?roomUUID=A1A1-B2B2&page=0&size=10 HTTP/1.1
+GET /chat/rooms/details?roomUUID=AAAA-BBBB-CCCC-DDDD HTTP/1.1
Host: localhost:8080
roomUUID
검색할 채팅방 UUID
HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 253
+
+{
+ "success" : true,
+ "message" : "요청이 성공적으로 처리되었습니다.",
+ "data" : {
+ "usernames" : [ "pjh5365", "Justin", "Apple" ],
+ "chatRoomUUID" : "7555f825-a342-4d77-b6db-4439cebe8e7c",
+ "chatRoomName" : "채팅방1"
+ }
+}
+Path | +Type | +Description | +
---|---|---|
|
+
|
+성공여부 |
+
|
+
|
+응답 메시지 |
+
|
+
|
+채팅방 리스트 |
+
|
+
|
+참여자 이름 리스트 |
+
|
+
|
+채팅방 UUID |
+
|
+
|
+채팅방 이름 |
+
GET /chat/messages?roomUUID=A1A1-B2B2&page=0&size=10 HTTP/1.1
+Host: localhost:8080
+Parameter | +Description | +
---|---|
|
채팅방 UUID |