boostcamp-2020/IssueTracker-35

[API] Label 생성

Closed this issue · 0 comments

개요

  • label 생성 API

URL

  • /labels

Method

  • POST: Label 추가

Header

  • Authorization: token

Body

  • title : string
  • content : string
  • color : string

Response

  • id : int
  • success: boolean
  • code: int

Error

상태 코드 오류 메시지 설명
400 Bad Request 유효하지 않은 title 값이나 color 값일 때 발생합니다.
401 Unauthorized 유효한 토큰을 header에 포함하지 않은 경우 발생합니다.
500 Internal Server Error 서버에 문제가 생긴 경우 발생합니다.