질문자 리뷰수정 - Willson-2019/Willson-Server GitHub Wiki
URL
[PATCH] ~/api/v1/asker/mypage/reviews/:review_idx
| REQUEST | PARAMETER NAME | DESCRIPTION |
|---|---|---|
| header | x-token | 엑세스 토큰 access token |
| header | Content-Type | application/json |
| body | title | 제목 : String |
| body | content | 내용 : String |
| body | rating | 평점 : Float |
요청예시
body
{
"image_idx": "2",
"title": "윌슨땡큐",
"content": "고민이 해결됐어요",
"rating": "4.8"
}
응답예시
성공
{
"code": "success",
"message": "success",
"data": {
"idx": 20,
"title": "윌슨땡큐",
"content": "고민이 해결됐어요",
"rating": "4.8",
"match_idx": 1,
"image_idx": "2"
}
}
access token이 만료된 경우
{
"code": "access_token_expired",
"message": "Access token expired"
}
결과를 찾지 못한 경우
{
"code": "not_found",
"message": "Result not found"
}