Skip to content

✔프로필 전환

최정균 edited this page Jul 16, 2020 · 11 revisions
메소드 경로 설명
GET /profile/conversion/:profileIdx 프로필 전환

전환

Request Header

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

Response

< Success >

{
    "status": 200,
    "success": true,
    "message": "프로필 조회성공입니다",
    "data": [
        {
            "profileIdx": 16,
            "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/1594541697390.jpg",
            "profileName": "마니또",
            "profileInfo": "마니또입니다"
        },
        {
            "profileIdx": 17,
            "profileImg": "https://outsopt26.s3.ap-northeast-3.amazonaws.com/1594541697390.jpg",
            "profileName": "마니또1",
            "profileInfo": "마니또입니다1"
        }
    ]
}
  • profileIdx : 프로필인덱스(int)
  • profileImg : 프로필이미지(String)
  • profileName : 고양이이름(String)
  • profileInfo : 고양이 한줄소개(String)

< Fail >

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