Skip to content

βœ… Member

YEJI edited this page Sep 25, 2023 · 3 revisions

SUMMARY

URI Description
πŸ“Œ GET /members/me 고객 계정 정보 쑰회
πŸ“Œ PUT /members/setting 고객 계정 정보 μˆ˜μ •

πŸ“Œ 고객 계정 정보 쑰회 GET /members/me

πŸ“Œ Request Parameters

  • Headers: Authorization

Response Parameters

Field Type Description
role string ROLE_PHOTOGRAPHER ν˜Ήμ€ ROLE_MEMBER의 값을 가짐. μ‚¬μš©μžμ˜ 역할을 λ‚˜νƒ€λƒ„
email string μ‚¬μš©μžμ˜ email
profile string μ‚¬μš©μžμ˜ ν”„λ‘œν•„ 사진 url
nickname string μ‚¬μš©μžμ˜ ν™œλ™ 이름

μ˜ˆμ‹œ μš”μ²­/응닡
πŸ“Œ Request


Response

{
    "email": "[email protected]",
    "nickname": "traveler",
    "profile" : null,
    "role": "ROLE_MEMBER"
}

πŸ“Œ 고객 계정 정보 μˆ˜μ • PUT /members/setting

πŸ“Œ Request Parameters

  • Headers: Authorization
Field Type Description
email string μ‚¬μš©μžμ˜ email. ν•˜λ‚˜λ§Œ μ‘΄μž¬ν•  수 있음
nickname string μ‚¬μš©μžμ˜ ν™œλ™ 이름. μ—¬λŸ¬ 개 쑴재 κ°€λŠ₯
profileImage string μ‚¬μš©μžμ˜ ν”„λ‘œν•„ 사진 url
password string μ‚¬μš©μžμ˜ λΉ„λ°€λ²ˆν˜Έμ™€ μΌμΉ˜ν•˜μ§€ μ•ŠμœΌλ©΄ 500 μ—λŸ¬ λ°œμƒ

Response Parameters

Field Type Description
role string ROLE_PHOTOGRAPHER ν˜Ήμ€ ROLE_MEMBER의 값을 가짐. μ‚¬μš©μžμ˜ 역할을 λ‚˜νƒ€λƒ„
email string μ‚¬μš©μžμ˜ email
profile string μ‚¬μš©μžμ˜ ν”„λ‘œν•„ 사진 url
nickname string μ‚¬μš©μžμ˜ ν™œλ™ 이름

μ˜ˆμ‹œ μš”μ²­/응닡
πŸ“Œ Request

{
    "email" : "[email protected]",
    "nickname" : "μ˜ˆμ§€",
    "profileImage" : "http://profile.com/profile123",
    "password" : "yeji"
}

Response

{
    "email": "[email protected]",
    "nickname": "μ˜ˆμ§€",
    "profile": "http://profile.com/profile123",
    "role": "ROLE_MEMBER"
}