Comment Update

URL

http://api.pm0603.com/api_comment/

Method

PUT

Header

Key Value
Authorization Token token value

Data Params

Key Value
body 리뷰 본문
content 리뷰를 등록할 content_id

URL Params

None

Success Response

  • Code: 200
{
  "content": 1,
  "user": 1,
  "body": "수정",
  "created_date": "2017-04-25T09:54:14.875039Z",
  "id": 1
}

Response Detail

Key Value
content content 번호
user 작성자
body 리뷰 본문
created_date 작성일
id 댓글 id

Error Response

  • Code: 400
    • Reason: 필수 요소를 입력하지 않음
  • Code: 405
    • Reason: 메소드를 잘못 보냄
  • Code: 401
    • Reason
      • Invalid token
      • header로 token을 보내지 않음
{
  "content": [
    "This field is required."
  ]
}
{
  "detail": "Method \"POST\" not allowed."
}
{
  "detail": "Invalid token."
}
{
  "detail": "Authentication credentials were not provided."
}

results matching ""

    No results matching ""