-
Notifications
You must be signed in to change notification settings - Fork 1
별점 주기
HwangJaeSuk edited this page Sep 12, 2019
·
4 revisions
![](https://github.com/BabyClosetGroup/BabyClosetServer/raw/master/babyCloset/public/images/dorating.png)
[POST] ~/rating
메소드 | 파라미터 | 설명 |
---|---|---|
Content-Type | application/json | |
token | {user token} | 토큰값 |
변수 | 타입 | 설명 |
---|---|---|
userIdx | Int | 별점 주고 싶은 상대방에 해당하는 유저 id값 |
rating | Int | 별점 |
postIdx | Int | 별점 주고 싶은 게시물 id값 |
{
"userIdx" : 4,
"postIdx" : 12,
"rating" : 4
}
{
"status": 200,
"success": true,
"message": "별점 작성 성공"
}
{
"status": 400,
"success": false,
"message": "필요한 값이 없습니다."
}
{
"status": 400,
"success": false,
"message": "토큰값이 존재하지 않습니다."
}
{
"status": 401,
"success": false,
"message": "잘못된 형식의 토큰입니다."
}
{
"status": 401,
"success": false,
"message": "만료된 토큰입니다."
}
{
"status": 600,
"success": false,
"message": "별점 작성 실패"
}
-
유저(User)
-
게시물(Post)
-
쪽지(Note)
-
나눔(Share)
-
QR인증(QRCode)
-
별점(Rating)
-
신고(Complain)