Skip to content

[POST] 게시물 생성

DongGeon0908 edited this page Oct 16, 2021 · 1 revision

URL

METHOD URL ...
GET /api/club/{clubId}/board/{postId}/post 게시물 생성

Request Header

{
    "Content-Type": "application/json"
}

Request Body

{
	"title" : "게시글 생성 처음",
	"content" : "게시글 생성 완료했어요!!"
}

Response Success

{
  "status": 201,
  "message": "CREATE_POST_SUCCESS",
  "data": null
}

Response Fail with InvalidArgument

{
  "status": 400,
  "message": "INVALID_BOARD_NAME",
}

Response Fail with NonExists

{
  "status": 400,
  "message": "NOT_EXIST_MEMBER",
}

{
  "status": 400,
  "message": "NOT_EXIST_CLUB",
}

{
  "status": 400,
  "message": "NOT_EXIST_BOARD",
}

Response Fail with NonInclude

{
  "status": 400,
  "message": "NON_INCLUDE_CLUB",
}

{
  "status": 400,
  "message": "NON_INCLUDE_CLUB",
}