Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[User] 친구 신청 조회 API 구현 #173

Closed
2 tasks
minahYu opened this issue Jun 14, 2024 · 0 comments
Closed
2 tasks

[User] 친구 신청 조회 API 구현 #173

minahYu opened this issue Jun 14, 2024 · 0 comments
Assignees
Labels
API 상세 api 문서 enhancement 추가 기능 User 유저 관련기능

Comments

@minahYu
Copy link
Contributor

minahYu commented Jun 14, 2024

어떤 기능인가요?

친구 신청 조회 기능입니다.

request

로그인한 사용자의 userId를 @PathVariable 방식으로 입력 받습니다.

URL & Method

GET /api/v1/user/{userId}/requests

header

header values description
Content-type application/json

response

body

{
    "data": {
        "userId": 사용자 아이디,
        "friendRequests": [
            {
                "friendId": 친구신청을 한 사용자의 아이디 ,
                "username": 친구신청을 한 사용자의 닉네임
            }
        ]
    }
}

Error

400 BAD_REQUEST 자신을 제외한 다른 사람의 친구 신청 목록을 보고자 해서 친구신청 조회를 실패한 경우입니다.

작업 상세 내용

  • 친구신청 조회 API 구현
  • 친구신청 조회 테스트 코드 작성
@minahYu minahYu added enhancement 추가 기능 API 상세 api 문서 User 유저 관련기능 labels Jun 14, 2024
@minahYu minahYu added this to the MSA 채팅 서비스 개발 milestone Jun 14, 2024
@minahYu minahYu self-assigned this Jun 14, 2024
@minahYu minahYu added this to kopring Jun 14, 2024
@minahYu minahYu moved this to In progress in kopring Jun 14, 2024
@minahYu minahYu moved this from In progress to Done in kopring Jun 18, 2024
@minahYu minahYu closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API 상세 api 문서 enhancement 추가 기능 User 유저 관련기능
Projects
Status: Done
Development

No branches or pull requests

1 participant