Record Comment API

parent_id : 부모 댓글 아이디

1. 댓글 저장

Request
POST /api/v1/record_comment HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NzAsImF1dGgiOiJVU0VSIiwidHlwZSI6Ik5PTkUifQ.aa7TlnZWiX_Dq-wFEzKOOgKcxoUO89dUV8tXHcY0xrDxmD7DIVjzzCDzaVwaY1mD2gCN0ceQKkZGB1h2cIJIKQ
Accept: application/json
Content-Length: 81
Host: localhost:8080

{
  "record_id" : 37236,
  "parent_id" : null,
  "content" : "댓글입니다."
}
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: 66

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

2. 댓글 수정

Request
PUT /api/v1/record_comment/37225 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NzAsImF1dGgiOiJVU0VSIiwidHlwZSI6Ik5PTkUifQ.aa7TlnZWiX_Dq-wFEzKOOgKcxoUO89dUV8tXHcY0xrDxmD7DIVjzzCDzaVwaY1mD2gCN0ceQKkZGB1h2cIJIKQ
Accept: application/json
Content-Length: 33
Host: localhost:8080

{
  "content" : "수정 내용"
}
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: 66

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

3. 댓글 삭제

Request
DELETE /api/v1/record_comment/37212 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0X2pob3VzZV9jb20iLCJleHAiOjE3MTEzNzA0NzAsImF1dGgiOiJVU0VSIiwidHlwZSI6Ik5PTkUifQ.aa7TlnZWiX_Dq-wFEzKOOgKcxoUO89dUV8tXHcY0xrDxmD7DIVjzzCDzaVwaY1mD2gCN0ceQKkZGB1h2cIJIKQ
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: 48

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