채팅방 나가기 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Chatroom Leave delete API
Request
Method
DELETE
URL
/api/chatroom/{userChatroomId}
Header
Method |
Parameter |
Description |
Content-Type |
application/json |
|
token |
{token} |
access token값 |
Path Variable
Parameter |
Type |
Description |
Required |
userChatroomId |
Long |
유저 채팅방 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",
}