Skip to content

✔리뷰등록

Gyunny edited this page Sep 10, 2020 · 25 revisions
메소드 경로 설명
POST /review/add 리뷰등록


Request Header

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

Request Body

{
    "reviewRating" : 5,
    "reviewPrefer" : 3,
    "reviewInfo" : "한줄리뷰",
    "reviewMemo" : "리뷰메모입니다",
    "reviewStatus" : 3,
    "reviewSmell" : 3,
    "reviewEye" : 1,
    "reviewEar" : 0,
    "reviewHair" : 1,
    "reviewVomit" : 0,
    "foodIdx" : 1,
    "profileIdx" : 2   
}
  • reviewRating : 리뷰 평점(1 ~ 5) (String)
  • reviewPrefer" : 리뷰 선호도(1 ~ 5)(String)
  • reviewInfo : 한줄리뷰(String)
  • reviewMemo : 리뷰메모입니다(Text)
  • reviewStatus : 변상태(1 ~ 5)(int)
  • reviewSmell : 변냄새(1 ~ 5)(int)
  • reviewEye : 트러블(눈)(0 ~ 1)(int)
  • reviewEar : 트러블(귀)(0 or 1)(int)
  • reviewHair : 트러블(털)(0 or 1)(int)
  • reviewVomit" : 트러블(구토)(0 or 1)(int)
  • foodIdx : 캣푸드 인덱스(int)
  • profileIdx : 프로필인덱스(int)

Response

< Success >

{
    "status": 200,
    "success": true,
    "message": "리뷰등록 성공입니다",
}

< NULL >

  • 필수 데이터가 없을 때
{
    "status": 400,
    "success": false,
    "message": "필요한 값이 없습니다"
}