Employment Credential Retrieve

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

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

URL

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

Method

GET

Header

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

Success Response

HTTP Status Code

200

Content

{
    # Employment Credential의 pk값
    "pk": 5,
    # 생성된 Employment Credential의 detail URL - 클라이언트에서 다음 요청을 보낼 곳을 알기 쉽도록 url 정보를 돌려줌
    "url": "http://localhost:8000/user/3/profile/empl-credentials/5/",
    # 주제(회사)의 정보
    "company": {
            # 해당 주제의 pk
            "pk": 7,
            # 주제(회사)이름
            "name": "Hyperconnect",
            # 주제(회사)의 이미지 주소
            "image": "http://localhost:8000/media/profile/thumbnail_img_200/nanum123%40gmail.com/tree_moRGpdQ.png"
        },
    "position": "Backoffice Developer",
    "start_year": 2012,
    "end_year": null,
    "working_status": true,
    "type": "empl"
}

Error Response

Not Found Error

HTTP Status Code

404

Content

# 존재하지 않는 Employment 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 ""