Add a new review for a product
curl --request POST \
--url https://api.example.com/api/review \
--header 'Content-Type: application/json' \
--data '
{
"productId": "<string>",
"rating": 123,
"comment": "<string>"
}
'{
"statusCode": 201,
"message": "Review added successfully",
"data": {
"userId": "user123",
"productId": "12345",
"rating": 5,
"comment": "Great product! Highly recommended."
}
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/memoowi/e-comm-api-demo-2/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <your_token>
curl -X POST https://api.example.com/api/review \
-H "Authorization: Bearer <your_token>" \
-H "Content-Type: application/json" \
-d '{
"productId": "12345",
"rating": 5,
"comment": "Great product! Highly recommended."
}'
{
"statusCode": 201,
"message": "Review added successfully",
"data": {
"userId": "user123",
"productId": "12345",
"rating": 5,
"comment": "Great product! Highly recommended."
}
}
curl --request POST \
--url https://api.example.com/api/review \
--header 'Content-Type: application/json' \
--data '
{
"productId": "<string>",
"rating": 123,
"comment": "<string>"
}
'{
"statusCode": 201,
"message": "Review added successfully",
"data": {
"userId": "user123",
"productId": "12345",
"rating": 5,
"comment": "Great product! Highly recommended."
}
}