User Follower List
유저의 팔로워 목록
Client에서 보낸 데이터의 pk에 해당하는 유저의 팔로워 목록을 보여줍니다.
Get Parameter로 page를 받을 수 있으며, 주어지지 않을 경우, 1페이지로 취급됩니다. 기본 pagination의 page_size: 10개의 object Get Parameter로 page_size를 주는 경우, 불러오는 page_size를 조정할 수 있습니다.
URL
/user/<pk>/followers/
/user/<pk>/followers/?page=<value>
/user/<pk>/followers/?page=<value>&page_size=<value>
Method
GET
Header
Key | Value |
---|---|
Authorization | Token(로그인 성공했을 때 받은 Token key값) |
URL Params
Key | Description | Value | Type | Require |
---|---|---|---|---|
page | 페이지 번호 | Page Number | Integer | False |
page_size | 1페이지에 오는 최대 object 개수 | Page Size | Integer | False |
Success Response
HTTP Status Code
200
Content
{
"count": 30,
"next": "http://localhost:8000/user/2/followers/?page=2",
"previous": null,
"results": [
{
"pk": 4,
"name": "김경",
"thumbnail_image_50": "/media/profile/thumbnail_img_50/de152%40gmail.com/profile/img/de152%40gmail.com/search_OrDH1O9.png",
"main_credential": "패스트캠퍼스 수강생",
"follow_relation_pk": null
},
{
"pk": 5,
"name": "이시원",
"thumbnail_image_50": "/media/profile/thumbnail_img_50/de1352%40gmail.com/profile/img/de1352%40gmail.com/summary_img_Kq5g29w.png",
"main_credential": "백엔드 개발자",
"follow_relation_pk": 3
},
{
"pk": 6,
"name": "정혜령",
"thumbnail_image_50": null,
"main_credential": "프론트엔드 개발자",
"follow_relation_pk": 2
},
...
...
]
}
Error Response
Not Found Error
HTTP Status Code
404
Content
# 존재하지 않는 페이지 번호를 page parameter에 담아서 요청을 보낸 경우
{
"detail": "페이지가 유효하지 않습니다."
}
Unauthorized Error
HTTP Status Code
401
Content
# 유저 Token을 헤더에 담지 않고 요청을 보낸 경우
{
"detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}
Unauthorized Error
HTTP Status Code
401
Content
# 존재하지 않는 유저 Token을 헤더에 담아 요청을 보낸 경우
{
"detail": "토큰이 유효하지 않습니다."
}