Record Category API

category

culture (오도리 - 팀 내 문화)
retrospection (회고 - 회고)
disaster (기술 - 장애 관리)
issue (기술 - 이슈 관리)
new_tech (기술 - 신 기술)
architecture (기술 - 설계)

1. 템플릿 저장

Request
POST /api/v1/record_category/template HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NzAsImF1dGgiOiJBRE1JTiIsInR5cGUiOiJTRVJWRVIifQ.qWvhwLbw31LHccmRQ5pjEq-6mbE00GtZx5-u6baupte_TmtrYeuhzrnxP3S2mdshXCXby5Pa7YAH9090PD1E1g
Accept: application/json
Content-Length: 67
Host: localhost:8080

{
  "template" : "제목 : \n내용 : ",
  "category" : "culture"
}
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 48

{
  "code" : "SUCCESS",
  "message" : "성공"
}

2. 템플릿 조회

Request
GET /api/v1/record_category/template/culture HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NzAsImF1dGgiOiJBRE1JTiIsInR5cGUiOiJTRVJWRVIifQ.qWvhwLbw31LHccmRQ5pjEq-6mbE00GtZx5-u6baupte_TmtrYeuhzrnxP3S2mdshXCXby5Pa7YAH9090PD1E1g
Accept: application/json
Host: localhost:8080
Response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 134

{
  "code" : "SUCCESS",
  "message" : "성공",
  "data" : {
    "template" : "제목 : \n내용 : ",
    "category" : "culture"
  }
}