-
Notifications
You must be signed in to change notification settings - Fork 1
게시글 좋아요 읽기
devi_kya edited this page Mar 12, 2018
·
5 revisions
- Method : GET
- URL : /documents/:id/likeIt
- Content-Type : application/json; charset=utf-8
- 예제
http GET https://your-site/documents/1/likeIt
필드명 | 타입 | 필수여부 | 설명 |
---|---|---|---|
id | Int | Required | 게시글 PK |
text | String | Required | 게시글 내용 |
user | List of Users | Required | 게시글 좋아요한 유저 |
- 예제
[
{
"id": 1,
"fullname": "yoshiko_tsushima",
"nTh": 20,
"dateOfBirth": "1999-07-13",
"username": "yohane",
"password": "1234",
"department": "computer engineering",
"studentNumber": 2018123456,
"email": "example@example.com",
"phoneNumber": "080-1111-2222",
"favoriteComic": "",
"favoriteCharacter": "",
"dataJoined": "2018-03-12T10:11:12.000Z",
"isAnon": false,
"profileText": "",
"isSuperUser": false,
"isActivated": false,
"isGraduated": false,
"isRegularMember": false,
"numberOfDocuments": 0,
"numberOfComments": 2,
"numberOfDocumentLikes": 1,
"numberOfCommentLikes": 0,
"profileImage": {
"id": 1,
"file": "yohane.jpg",
"savedPath": "MIKI"
}
}
]
http status code | code | message | comment |
---|---|---|---|
200 | 0 | SUCCESS | 정상 응답 |
400 | 0 | FAIL | 비정상 응답 |
401 | 0 | Unathorized | 로그인 필요 |
403 | 0 | Forbidden | 권한 없음 |