Record Review API

status

approve (승인)
reject (반려)
mine (레코드 작성자가 리뷰를 달 때)

1. 리뷰 저장

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

{
  "record_id" : 37282,
  "content" : "좋은 글 감사합니다!",
  "status" : "approve"
}
Response - Success
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: 66

{
  "code" : "SUCCESS",
  "message" : "성공",
  "data" : 37285
}
Response - Fail
HTTP/1.1 400 Bad Request
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 76

{
  "code" : "R0000",
  "message" : "이미 승인처리된 글입니다."
}

2. 리뷰 수정

Request
PUT /api/v1/record_review/37327 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NzEsImF1dGgiOiJBRE1JTiIsInR5cGUiOiJTRVJWRVIifQ.YpeXSnxMIeKciFrXLGzy5Xp-jMT600kSfB6T5OfwMXoXhB6hNNBz-sd3oJK2dDgbSOiRulRddwoFG-pPX0vBwg
Accept: application/json
Content-Length: 57
Host: localhost:8080

{
  "content" : "수정 내용",
  "status" : "approve"
}
Response - Success
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: 66

{
  "code" : "SUCCESS",
  "message" : "성공",
  "data" : 37327
}
Response - Fail
HTTP/1.1 400 Bad Request
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 76

{
  "code" : "R0000",
  "message" : "이미 승인처리된 글입니다."
}

3. 리뷰 삭제

Request
DELETE /api/v1/record_review/37299 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NzEsImF1dGgiOiJBRE1JTiIsInR5cGUiOiJTRVJWRVIifQ.YpeXSnxMIeKciFrXLGzy5Xp-jMT600kSfB6T5OfwMXoXhB6hNNBz-sd3oJK2dDgbSOiRulRddwoFG-pPX0vBwg
Accept: application/json
Host: localhost:8080
Response - Success
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" : "성공"
}
Response - Fail
HTTP/1.1 400 Bad Request
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json;charset=UTF-8
Content-Length: 76

{
  "code" : "R0000",
  "message" : "이미 승인처리된 글입니다."
}