boostcamp-2020/IssueTracker-35

[API] Comment 수정

Closed this issue · 0 comments

joh16 commented

개요

  • 코멘트 수정 API

URL

  • /comments/:commentId

Method

  • PATCH: 코멘트 내용 수정

Header

  • Authorization: token

Body

  • content: string

Response

  • success: boolean
  • code: int

Error

상태 코드 오류 메시지 설명
400 Missing content 내용 누락 시 발생합니다.
401 Unauthorized 유효한 토큰을 header에 포함하지 않은 경우 발생합니다.
403 Forbidden 다른 사용자의 덧글을 수정하려는 경우 발생합니다.
404 Not Found 해당 id의 comment가 존재하지 않는 경우 발생합니다.
500 Internal Server Error 서버에 문제가 생긴 경우 발생합니다.