Create Board

add new board

POST /boards

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Request-Body

Name
Type
Description

boardName

string

name of the board

description

string

description of the board

announcement

string

announcement of the board

masterId

string

ID of the master

Response

{
      "boardId": 1,
      "boardName": "벗들의 벼룩",
      "description": "벗들의 중고거래 모임",
      "announcement": "사진을 꼭 올려야합니다~",
      "masterId": 1
}

// 생성일 및 수정일은 'BaseTimeEntity'로 서버에서 자동으로 관리됩니다.

피드백 받은 내용

  • 400 에러 잘못된 요청의 경우 → 필수 값인 board name, description 등이 누락되었을 때 추가

  • Request-Body에 master의 nickname 대신 master_id를 보내는 것이 좋을 것 같습니다

Last updated