-
Notifications
You must be signed in to change notification settings - Fork 1
후기 삭제하기
boong_u edited this page Sep 22, 2021
·
2 revisions
후기 삭제하기
DELETE : /api/reviews/detail/:reviewId
reviewId = 삭제할 후기의 Id
Content-Type: application/json
x-auth-token : 로그인 시 받는 jwt token (Ex:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNjExMGNjMmFjNTBjZmY2YzdjOGIxZTZlIn0sImlhdCI6MTYyODU2NjQxMiwiZXhwIjoxNjI4NjAyNDEyfQ.SWMPObKmGjQcQOUgvHF1HNupO2OovuOHsCXz7O0HZck)
None
None
Example URL : {{baseURL}}/api/reviews/detail/61135520da587b36104d4574
Success : 200
{
"data": "deleted"
}
토큰이 없거나 잘못된 경우 : 401
{
"error": "No token"
}
리뷰가 없는 경우 : 404
{
"error": "Review Not Found"
}
자신의 리뷰가 아닌 경우 : 403
{
"error": "Not authenticated"
}
Server Error : 500
{
"error" : "Internal Server Error"
}