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

[마이페이지] API 설계 #8

Open
woorim960 opened this issue Nov 26, 2023 · 0 comments
Open

[마이페이지] API 설계 #8

woorim960 opened this issue Nov 26, 2023 · 0 comments
Assignees
Labels
API 설계 API 설계 및 명세화 우선순위_필수 무조건 개발

Comments

@woorim960
Copy link
Contributor

woorim960 commented Nov 26, 2023

API

마이페이지 정보 전체 조회

이 API는 사용자의 마이페이지에 필요한 모든 정보를 한 번에 가져옵니다.

Request

  • method: GET
  • path: /api/users/{userId}/my-page
  • header:
{
    "Content-Type": "application/json; charset=utf-8"
}

Response

  • http-status: 200 OK
{
   "success": true,
   "message": "...API 별 처리 메시지...",
   "data": {
      "userId": "user123",
      "profile": {
         "userName": "규라니",
         "personalMessage": "헤이 모두들 안녕. 내가 누군지 아니?",
         "followersCount": 37,
         "rewardPoints": 1250,
         "profileImage": "/image.jpg",
     },
      "updatedMagazines": [{
         "consumerId": "consumer1",
         "consumerName": "주부9단",
         "magazineThumbnail": "/image.jpg"
      }, {
         "consumerId": "consumer2",
         "consumerName": "우리밋",
         "magazineThumbnail": "/image.jpg"
      }, {
         "consumerId": "consumer3",
         "consumerName": "예은맘",
         "magazineThumbnail": "/image.jpg"
      }],
      "updatedMagazinesCount": 3,
      "myMagazines": [{
         "categoryName": "전체",
         "magazinesCount": 26, 
         "magazines": [{
            "id": 153,
            "thumbnail": "/image.jpg"
         }, {
            "id": 154,
            "thumbnail": "/image.jpg"
         }]
      }, {
         "categoryName": "요리",
         "magazinesCount": 10, 
         "magazines": [{
            "id": 113,
            "thumbnail": "/image.jpg"
         }, {
            "id": 631,
            "thumbnail": "/image.jpg"
         }]
      }]
   }
}

참고 이미지

메인화면 2

@woorim960 woorim960 added 우선순위_필수 무조건 개발 API 설계 API 설계 및 명세화 labels Nov 26, 2023
@woorim960 woorim960 changed the title 마이페이지 정보 전체 조회 API 설계 [#15] 마이페이지 정보 전체 조회 API 설계 Nov 26, 2023
@woorim960 woorim960 reopened this Nov 26, 2023
@woorim960 woorim960 assigned woorim960 and yeeeun0514 and unassigned woorim960 Nov 26, 2023
@woorim960 woorim960 reopened this Nov 27, 2023
@woorim960 woorim960 self-assigned this Nov 29, 2023
@woorim960 woorim960 changed the title [#15] 마이페이지 정보 전체 조회 API 설계 [마이페이지] API 설계 Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API 설계 API 설계 및 명세화 우선순위_필수 무조건 개발
Projects
None yet
Development

No branches or pull requests

2 participants