Skip to content

✔다른 고양이 프로필 조회

최정균 edited this page Jul 16, 2020 · 16 revisions
메소드 경로 설명
GET /profile 사진, 이름, 성별, 나이, 몸무게, 소개, 팔로잉 수, 팔로워 수



Request Header

{
    "Content-Type": "application/json"
}

Request 형식 예시

    52.79.90.119:3000/profile?myprofileIdx=1&profileIdx=2
  • myprofileIdx: 현재 프로필 인덱스
  • profileIdx: 조회할 프로필 인덱스

Response

< Success >

{
    "status": 200,
    "success": true,
    "message": "프로필 조회 성공",
    "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
            }
        ],
        "ischeck": false
    }
}
  • reviewCountAll : 리뷰 전체 수 (int)
  • profileInfoArray : 리뷰 리스트 배열
  • profileImg : 고양이 사진 (String)
  • profileName : 고양이 이름 (String)
  • profileGender : 고양이 성별 (String)
  • profileNeutral : 중성화 여부 (String)
  • profileAge : 고양이 나이 (int)
  • profileWeight : 고양이 체중 (int)
  • profileInfo : 고양이 한줄 소개 (String)
  • follower : 해당 고양이를 팔로우 하는 수 (int)
  • follwing : 해당 고양이가 팔로우 하는 수 (int)
  • ischeck : 팔로우 체크여부 (boolean)

< Fail >

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