Create Post
add new post
POST
/boards/{boardId}/posts
<Description of the endpoint>
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Request-Body
Name
Type
Description
anonymity
boolean
anonymity of the writer
content
string
content of the post
Response
{
"postId": 1,
"writerId": 1,
"anonimity": true,
"content": "글입니다.",
}
// 생성일 및 수정일은 'BaseTimeEntity'로 서버에서 자동으로 관리되며,
// 클라이언트는 이 값을 요청 본문에 포함하지 않아도 됩니다.
피드백 받은 내용
writer의 nickname보다 id도 있으면 좋을 것 같습니당
content의 내용이 없을 때 등의 적절한 메시지 반환 요청 400 에러 추가
Last updated