POST api/reviews/CreateReviews
Request Information
URI Parameters
None.
Body Parameters
ReviewsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| userid | integer |
None. |
|
| productid | integer |
None. |
|
| rating | integer |
None. |
|
| comment | string |
None. |
|
| isverified | boolean |
None. |
|
| reviewdate | date |
None. |
|
| createdat | date |
None. |
|
| updatedat | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"userid": 2,
"productid": 3,
"rating": 1,
"comment": "sample string 4",
"isverified": true,
"reviewdate": "2025-12-17T10:16:23.8352863+03:00",
"createdat": "2025-12-17T10:16:23.8352863+03:00",
"updatedat": "2025-12-17T10:16:23.8352863+03:00"
}
application/xml, text/xml
Sample:
<ReviewsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs"> <Comment>sample string 4</Comment> <CreatedAt>2025-12-17T10:16:23.8352863+03:00</CreatedAt> <ID>1</ID> <IsVerified>true</IsVerified> <ProductID>3</ProductID> <Rating>1</Rating> <ReviewDate>2025-12-17T10:16:23.8352863+03:00</ReviewDate> <UpdatedAt>2025-12-17T10:16:23.8352863+03:00</UpdatedAt> <UserID>2</UserID> </ReviewsDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelOfReviewsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| data | ReviewsDTO |
None. |
|
| success | boolean |
None. |
|
| statusCode | integer |
None. |
|
| message | string |
None. |
|
| errorMessage | string |
None. |
|
| metadata | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"id": 1,
"userid": 2,
"productid": 3,
"rating": 1,
"comment": "sample string 4",
"isverified": true,
"reviewdate": "2025-12-17T10:16:23.8362859+03:00",
"createdat": "2025-12-17T10:16:23.8362859+03:00",
"updatedat": "2025-12-17T10:16:23.8362859+03:00"
},
"success": true,
"statusCode": 2,
"message": "sample string 3",
"errorMessage": "sample string 4",
"metadata": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfReviewsDTOqOm1f5oC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox.Models.Response">
<ErrorMessage>sample string 4</ErrorMessage>
<Message>sample string 3</Message>
<Metadata />
<StatusCode>2</StatusCode>
<Success>true</Success>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/cbox.Models.DTOs">
<d2p1:Comment>sample string 4</d2p1:Comment>
<d2p1:CreatedAt>2025-12-17T10:16:23.8362859+03:00</d2p1:CreatedAt>
<d2p1:ID>1</d2p1:ID>
<d2p1:IsVerified>true</d2p1:IsVerified>
<d2p1:ProductID>3</d2p1:ProductID>
<d2p1:Rating>1</d2p1:Rating>
<d2p1:ReviewDate>2025-12-17T10:16:23.8362859+03:00</d2p1:ReviewDate>
<d2p1:UpdatedAt>2025-12-17T10:16:23.8362859+03:00</d2p1:UpdatedAt>
<d2p1:UserID>2</d2p1:UserID>
</Data>
</ResponseModelOfReviewsDTOqOm1f5oC>