TopicInterest Following List

유저가 팔로우하는 전문분야 주제 목록

Client에서 보낸 데이터의 pk에 해당하는 유저가 팔로우 하는 관심분야 주제 목록을 보여줍니다.
Get Parameter로 page를 받을 수 있으며, 주어지지 않을 경우, 1페이지로 취급됩니다. 기본 pagination의 page_size: 4개의 object Get Parameter로 page_size를 주는 경우, 불러오는 page_size를 조정할 수 있습니다.

URL

/user/<pk>/following-expertise/
/user/<pk>/following-expertise/?page=<value> /user/<pk>/following-expertise/?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

**page_size

{
    "count": 30,
    "next": "http://localhost:8000/user/1/following-expertise/?page=2&page_size=5",
    "previous": null,
    "results": [
        {
            "pk": 1,
            "name": "Startups",
            "image": "/media/profile/thumbnail_img_50/de152%40gmail.com/profile/img/de152%40gmail.com/search_OrDH1O9.png",
            "follow_relation_pk": null
        },
        {
            "pk": 2,
            "name": "Computer Science",
            "image": null,
            "follow_relation_pk": 3
        },
        {
            "pk": 8,
            "name": "Python",
            "image": null,
            "follow_relation_pk": 5
        },
        ...
        ...        
    ]
}

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": "토큰이 유효하지 않습니다."
}

results matching ""

    No results matching ""