Delete User Review
Delete user review
Endpoint
Base URL
http://localhost:8080
Method and Endpoint
DELETE /api/sellers/current/review/{review_id}
Headers
Authorization: Bearer access_token
Route Param
review_id
: string (required)
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Delete Review Successfully",
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
404 (not found)
Response Body
{
"error": "review not found with that id"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}
500 (server error - failed)
If query to database
get troble while get the review
data
Response Body
{
"error": "failed to get review by email and id"
}
500 (server error - failed)
If query to database
get troble while update the review
data
Response Body
{
"error": "failed to delete the revieww"
}