Skip to content

유저 댓글 읽기

devi_kya edited this page Mar 8, 2018 · 1 revision

유저 댓글 읽기

  • Method : GET
  • URL : /users/:id/comments/
  • Content-Type : application/json; charset=utf-8

Request

필드명 타입 필수여부 설명
page string None 댓글 페이지네이션

예제

http GET https://:your-site/users/3/comments/?page=a9b897e890

Response

필드명 타입 필수여부 설명
count Integer Required 쿼리에 성공한 컬럼 개수
previous String None 이전 페이지
next String None 다음 페이지
result List of Comments Required 댓글 정보

예제

{
  "count": 2,
  "result": [
    {
      "id": 2,
      "comments": [
      ],
      "createdAt": "2017-12-12Z12:34:56",
      "text": "댓글",
      "user": {
          "id": 1,
          "profileImage" : {
              "id":"1",
              "file":"asdf1234.png",
              "savedPath":"/files/qwer9876.png"
          },
          "nTh" : 12,
          "fullname" : "링 샤오유",
          "department" : "컴소과",
          "numberOfDocuments" : 1,
          "numberOfComments" : 2,
          "numberOfLikes" : 3
      }
    },
    {
      ...
    },
    {
      ...
    }
  ]
}
http status code code message comment
200 0 SUCCESS 정상 응답
400 0 FAIL 비정상 응답
401 0 Unathorized 로그인 필요
403 0 Forbidden 권한 없음