Request Headers
•
Authorization: Bearer 토큰을 포함한 인증 헤더
Request Parameters
•
Path Variable
◦
userToken (String): 조회할 상대 유저의 고유 토큰
Response
•
Status Code: 200 OK
•
Content-Type: application/json
•
Body: List<ChatResponse>
Sample Response
{
"title": "다른 유저 이름",
"chatroomId": 12345,
"chatroomType": "PRIVATE",
"messageInfoList": [
{
"senderName": "John Doe",
"senderToken": "uniqueSenderToken123",
"senderProfileImage": "https://example.com/profile-image.jpg",
"content": "Hello, this is a message content.",
"createdAt": "2024-11-01T12:00:00Z"
},
{
"senderName": "Jane Smith",
"senderToken": "uniqueSenderToken456",
"senderProfileImage": "https://example.com/profile-image2.jpg",
"content": "Hi John, I received your message.",
"createdAt": "2024-11-01T12:05:00Z"
}
]
}
JSON
복사
오류
•
CHATROOM_NOT_FOUND
◦
Code: 404 Not Found
◦
Description: 해당 채팅방을 찾을 수 없습니다.