-
Notifications
You must be signed in to change notification settings - Fork 1
파일 읽기
devi_kya edited this page Mar 8, 2018
·
1 revision
- Method : GET
- URL : /files/:id
- Content-Type : application/json; charset=utf-8
http GET https://:your-site/files/1/
필드명 | 타입 | 필수여부 | 설명 |
---|---|---|---|
id | Int | Required | 파일 pk |
file | String | Required | 파일의 원래 이름 |
savedPath | String | Required | 파일 저장 경로 |
user | Users | Required | 파일 소유 유저 |
{
"id": 1,
"profileImage" : {
"id":"1",
"file":"asdf1234.png",
"savedPath":"/files/qwer9876.png"
},
"nTh" : 12,
"fullname" : "링 샤오유",
"department" : "컴소과",
"numberOfDocuments" : 1,
"numberOfComments" : 2,
...
"likeDocuments": [
{
"id": 1,
"id": 5
}
],
"likeComments": [
{
"id": 1,
"id": 4
}
]
http status code | code | message | comment |
---|---|---|---|
200 | 0 | SUCCESS | 정상 응답 |
400 | 0 | FAIL | 비정상 응답 |
401 | 0 | Unathorized | 로그인 필요 |
403 | 0 | Forbidden | 권한 없음 |