Endpoint
GET /api/v1/product-reviews/{id}
Retrieve detailed information about a specific product review.
Path Parameters
The unique identifier of the product review
Response
Returns a product review object.
Unique identifier for the review
ID of the product being reviewed
ID of the user who created the review
Rating given to the product (typically 1-5)
Text comment or review description
Timestamp when the review was created (ISO 8601 format)
Status Codes
Successfully retrieved the product review
Example Request
curl -X GET "https://api.example.com/api/v1/product-reviews/1"
Example Response
{
"id": 1,
"productId": 101,
"userId": 501,
"rating": 5,
"comment": "Excellent quality sofa! Very comfortable and looks great in my living room.",
"createdAt": "2024-01-15T10:30:00"
}
Error Response
When a product review is not found:
{
"status": 404,
"error": "Not Found",
"message": "Product review not found with id: 999"
}