채팅방 닫기 - DevCamp2Flame/FlameTalk_Server GitHub Wiki

Chatroom Close update API

Request

Method

PUT

URL

/api/chatroom/close

Header

Method Parameter Description
Content-Type application/json
token {token} access token값

Body

Field Type Description Required
userChatroomId Long 유저의 채팅방 ID Y
lastReadMessageId String 채팅방에서 유저가 마지막으로 확인한 채팅 메세지 ID Y

Response

Header

Method Parameter Description
statusCode {statusCode}

Body

Field Type Description
status Integer 응답 코드
message String 응답 메세지

SUCCESS example

{
    "status": 200,
    "messsage": "채팅방 닫기 성공"
}

Error Code

Code Error Messsage
400 Bad Request
401 Unauthorized
500 Server Error

FAIL example

{
    "status": 400,
    "message": "잘못된 요청입니다.",
    "error": "BAD_REQUEST",
    "code": "BAD_REQUEST",
    "timestamp": "2022-01-18T19:30:16.3072905",
}