Skip to content

✔프로필 조회

alia edited this page Jul 16, 2020 · 27 revisions
메소드 경로 설명
GET /profile/mainProfile/:profileIdx 고양이 프로필 조회

프로필조회


Request Header

{
    "Content-Type": "application/json",
    "token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QzIiwibmFtZSI6Iu2FjOyKpO2KuCIsImlhdCI6MTU3NzczNTQwNSwiZXhwIjoxNTgwMzI3NDA1LCJpc3MiOiJPdW5jZV9TZXJ2ZXIifQ.V4hcw4bxwICn4p7nz15ToUw63ok-QmbIbWx7gvDMouI"
}

Response Body

{
    "status": 200,
    "success": true,
    "data": {
        "reviewCountAll": 22,
        "profileInfoArray": [
            {
                "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/1594740348482.jpg",
                "profileName": "2",
                "profileGender": "male",
                "profileNeutral": "true",
                "profileAge": 1,
                "profileWeight": "1",
                "profileInfo": "2",
                "follower": 0,
                "following": 0
            }
        ]
    }
}
  • reviewCountAll : 내가 쓴 총 리뷰 수(int)
  • profileInfoArray : 프로필 정보 배열
  • profileIdx : 프로필인덱스(int)
  • profileImg : 프로필 이미지(String)
  • profileName : 고양이 이름 (String)
  • profileGender : 고양이 성별 (String)
  • profileNeutral : 고양이 중성화여부 (String)
  • profileWeight : 고양이 몸무게 (String)
  • profileInfo : 프로필 한줄소개 (String)
  • follower : 팔로워 수 (int)
  • following : 팔로우 수 (int)

< Fail >

  • 데이터 반환 에러
{
    "status": 400,
    "success": false,
    "message": "프로필 조회 실패"
}