Edit Post
modify content of the post
PATCH
/boards/{boardId}/posts/{postId}
<Description of the endpoint>
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Request-Body
Name
Type
Description
content
string
modified content of the post
Response
{
"message": "Post updated successfully.",
"post": {
"postId":1,
"writerId": 1,
"anonymity": true,
"content": "수정된 글 내용"
}
}
// 생성일 및 수정일은 'BaseTimeEntity'로 서버에서 자동으로 관리되며,
// 클라이언트는 이 값을 요청 본문에 포함하지 않아도 됩니다.
피드백 받은 내용
똑같이 404 요청한 Post 없음 에러 추가
Response에 writer id로
익명성 anonymity가 수정 가능한 요소라면 Request Body에도 anonymity 추가
Last updated