Add a new review for a product
cURL
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." } }
Authorization: Bearer <your_token>
Show data properties
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." }'