Skip to content

Feat/#43: 유저 프로필 정보 조회 api#44

Merged
EveryPine merged 2 commits intomainfrom
feat/#43
May 23, 2025
Merged

Feat/#43: 유저 프로필 정보 조회 api#44
EveryPine merged 2 commits intomainfrom
feat/#43

Conversation

@EveryPine
Copy link
Copy Markdown
Collaborator

@EveryPine EveryPine commented May 23, 2025

1. 유저 프로필 정보 조회 api 추가

[GET] /auth/profile

현재 로그인된 유저의 프로필 정보를 조회합니다.

Headers

헤더명 필수 설명
Content-Type application/json
Authorization Bearer {JWT_TOKEN}

Request Body

없음 (None)

Response Body

필드명 타입 설명
username String 사용자 이름
rank Rank (Enum) 사용자 직급
userId ObjectId (String) 사용자의 User ObjectId
email String 사용자 이메일

Response Body - Example

200 - OK

{
    "code": 200,
    "message": "현재 로그인된 유저 프로필 조회에 성공했습니다.",
    "result": {
        "username": "홍길동",
        "rank": "Intern",
        "userId": "68308473318f5014ad2fcfeb",
        "email": "abc123@gmail.com"
    }
}

404 - Not Found

{
    "code": 404,
    "message": "유저를 찾을 수 없습니다.",
    "details": null
}

Change Logs

  • 2025-05-23: 유저 프로필 정보 조회 API 최초 작성

EveryPine added 2 commits May 23, 2025 23:34
- 현재 로그인된 사용자 프로필 조회만 가능
- 대상 Exception: UserException
@EveryPine EveryPine self-assigned this May 23, 2025
@EveryPine EveryPine added enhancement New feature or request api-spec api 명세 labels May 23, 2025
@EveryPine EveryPine linked an issue May 23, 2025 that may be closed by this pull request
7 tasks
@EveryPine EveryPine merged commit 33ae712 into main May 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-spec api 명세 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 유저 프로필 조회 api 구현

1 participant