view message room existence

view message room existence

GET /message-rooms/{roomId}?startPostId={startPostId}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Response

// 방이 존재할 경우
{
    "messageRoomId": 1,
    "senderId": 1,
    "receiverId": 3
}
// 방이 존재하지 않을 경우
{ }

피드백 받은 내용

  • 요구사항에 따라 받는 사람의 id와 시작 게시글의 id를 요청에 추가해주세요 GET 메서드는 request body를 사용하지 않으니 uri에 포함하시면 될 것 같아요 !

Last updated