Education Credential Retrieve

유저 프로필 - 특정 학력 가져오기

Client에서 보낸 데이터의 credential_pk에 해당하는 특정 이력을 가져옵니다. 프로필 이력 정보: 회사, 직위, 입사년도, 퇴사년도, 현재 재직 여부

URL

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

Method

GET

Header

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

Success Response

HTTP Status Code

200

Content

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

Error Response

Not Found Error

HTTP Status Code

404

Content

# 존재하지 않는 Education Credential의 credential_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 ""