Education Credential List

유저 프로필 - 학력 목록 가져오기

Client에서 보낸 데이터의 pk에 해당하는 유저의 프로필 학력 목록을 가져옵니다. 프로필 학력 정보: 학교, 전공, 학위, 졸업년도

URL

/user/<pk>/profile/edu-credentials/

Method

GET

Header

Key Value
Authorization Token(로그인 성공했을 때 받은 Token key값)

Success Response

HTTP Status Code

200

Content

[
    {
        # 생성된 Education Credential(프로필 - 학력 정보)의 pk값
        "pk": 29,
        # 생성된 Education Credential의 detail URL - 클라이언트에서 다음 요청을 보낼 곳을 알기 쉽도록 url 정보를 돌려줌
        "url": "http://localhost:8000/user/3/profile/edu-credentials/29/",
        # 학교(주제) 정보
        "school": {
            "pk": 2,
            "name": "서울대학교",
            # 주제(학교)의 이미지 주소
            "image": "http://localhost:8000/media/profile/thumbnail_img_200/nanum123%40gmail.com/tree_moRGpdQ.png"
        },
        # 전공(주제) 정보
        "concentration": {
            "pk": 3,
            "name": "컴퓨터공학과",
            "image": null
        },
        "degree_type": "BA",
        "graduation_year": 2010,
        "type": "edu"
    },
    {
        "pk": 2,
        # 생성된 Education Credential의 detail URL - 클라이언트에서 다음 요청을 보낼 곳을 알기 쉽도록 url 정보를 돌려줌
        "url": "http://localhost:8000/user/3/profile/edu-credentials/2/",
        # 학교(주제) 정보
        "school": {
            "pk": 2,
            "name": "성균관대학교",
            # 주제(학교)의 이미지 주소
            "image": "http://localhost:8000/media/profile/thumbnail_img_200/nanum123%40gmail.com/tree_moRGpdQ.png"
        },
        # 전공(주제) 정보
        "concentration": {
            "pk": 3,
            "name": "컴퓨터공학과",
            "image": null
        },
        "degree_type": "BA",
        "graduation_year": 2010,
        "type": "edu"
    },
    {
        "pk": 20,
        # 생성된 Education Credential의 detail URL - 클라이언트에서 다음 요청을 보낼 곳을 알기 쉽도록 url 정보를 돌려줌
        "url": "http://localhost:8000/user/3/profile/edu-credentials/20/",
        # 학교(주제) 정보
        "school": {
            "pk": 2,
            "name": "부산대학교",
            # 주제(학교)의 이미지 주소
            "image": "http://localhost:8000/media/profile/thumbnail_img_200/nanum123%40gmail.com/tree_moRGpdQ.png"
        },
        # 전공(주제) 정보
        "concentration": {
            "pk": 3,
            "name": "기계공학과",
            "image": null
        },
        "degree_type": "BA",
        "graduation_year": 2010,
        "type": "edu"
    },
    ...
    ...
]

Error Response

Not Found Error

HTTP Status Code

404

Content

# 존재하지 않는 유저의 pk를 URI에 담아서 보낸 경우

{
    "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 ""