Skip to content

✔ 고양이 프로필 등록

Junhyeon edited this page Jan 2, 2021 · 1 revision
메소드 경로 설명
POST /main/addProfile 고양이 프로필 등록

login_onboarding__1

Request Header

{
    "Content-Type": "application/json",
    "token":"액세스 토큰 값"
}

Request Body

{
   "catName" : "옌이",
   "meetDate" : "2020-06-27"   
}

Response

< Success >

  • 새로 고양이 등록할 때
{
    "responseMessage": "프로필 등록 성공",
    "data": 1
}
  • data 값은 고양이 인덱스 번호 (가지고 있어야 함)

  • 이미 등록된 고양이일 때

{
    "responseMessage": "이미 등록 된 계정입니다.",
    "data": null
}

< Fail >

  • 데이터 누락 (400)
{
    "timestamp": "2020-12-29T02:04:54.539+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "",
    "path": "/login/google"
}
  • 서버 내부 에러 (requestBody 개수 안 맞을 때) (500)
{
    "responseMessage": "서버 내부 에러",
    "data": null
}
  • 메소드 에러 (405)
  • 경로 에러 (404)
  • 권한 에러 (수정 삭제는 미리 막고 대부분 토큰 만료)(401)

Clone this wiki locally