Create message room

add new message room

POST /message-rooms

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Request-Body

Name
Type
Description

receiverId

integer

member id of the receiver

message

string

message content of the note

postId

integer

ID of the post connected to message

Response

{
    "senderId":1,
    "receiverId": 2,
    "message": "안녕하세요! 여쭤볼께있어서 쪽지드립니다",
    "startMessageId": 1,
    "messageRoomId": 1
}
// 'startNoteId, createdDate, updatedDate'는 서버에서 자동으로 관리되며 요청에 포함되지 않습니다.

피드백 받은 내용

  • 쪽지방은 message-rooms(관례상 소문자,하이픈 사용) / 쪽지는 messages로 할 것 같아요 😄

  • 요구사항에 따라 request에 postId , response에 messageRoomId, createdAt 추가

Last updated