Inserts a product review and returns the new list. Likes and Dislikes will be set to zero.
The actual Review to insert. Likes and Dislikes will be ignored and set to zero.
The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.
The review score, if scores are kept. It is up to the application to define the score range.
Number of likes. See UpdateProductReviewLikes for information about how to update this.
Number of dislikes. See UpdateProductReviewLikes for information about how to update this.
curl -i -X POST \ https://demo.storm.io/api/1.1/ProductService.svc/rest/InsertProductReview \ -H 'Content-Type: application/json' \ -d '{ "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true }'
Success
The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.
The review score, if scores are kept. It is up to the application to define the score range.
Number of likes. See UpdateProductReviewLikes for information about how to update this.
Number of dislikes. See UpdateProductReviewLikes for information about how to update this.
Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]
curl -i -X GET \ 'https://demo.storm.io/api/1.1/ProductService.svc/rest/ListProductReviews?productId=0'
Success
The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.
The review score, if scores are kept. It is up to the application to define the score range.
Number of likes. See UpdateProductReviewLikes for information about how to update this.
Number of dislikes. See UpdateProductReviewLikes for information about how to update this.
Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]
curl -i -X GET \ https://demo.storm.io/api/1.1/ProductService.svc/rest/ListProductReviewsAll
Success
The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.
The review score, if scores are kept. It is up to the application to define the score range.
Number of likes. See UpdateProductReviewLikes for information about how to update this.
Number of dislikes. See UpdateProductReviewLikes for information about how to update this.
Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]
curl -i -X POST \ 'https://demo.storm.io/api/1.1/ProductService.svc/rest/UpdateProductReviewLikes?doLike=true&productId=0&reviewId=0'
Success
The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.
The review score, if scores are kept. It is up to the application to define the score range.
Number of likes. See UpdateProductReviewLikes for information about how to update this.
Number of dislikes. See UpdateProductReviewLikes for information about how to update this.
Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]