POST api/reviews/GetAllReviews
Request Information
URI Parameters
None.
Body Parameters
ListRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PageNumber | integer |
None. |
|
| PageSize | integer |
None. |
|
| SortField | string |
None. |
|
| SortDirection | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PageNumber": 1,
"PageSize": 2,
"SortField": "sample string 3",
"SortDirection": "sample string 4"
}
application/xml, text/xml
Sample:
<ListRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.Models"> <PageNumber>1</PageNumber> <PageSize>10</PageSize> <SortDirection>asc</SortDirection> <SortField>Id</SortField> <PageNumber>1</PageNumber> <PageSize>2</PageSize> <SortDirection>sample string 4</SortDirection> <SortField>sample string 3</SortField> </ListRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelOfListOfReviewsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of 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-20T08:45:07.454579+03:00",
"createdat": "2025-12-20T08:45:07.454579+03:00",
"updatedat": "2025-12-20T08:45:07.454579+03:00"
},
{
"id": 1,
"userid": 2,
"productid": 3,
"rating": 1,
"comment": "sample string 4",
"isverified": true,
"reviewdate": "2025-12-20T08:45:07.454579+03:00",
"createdat": "2025-12-20T08:45:07.454579+03:00",
"updatedat": "2025-12-20T08:45:07.454579+03:00"
}
],
"Success": true,
"StatusCode": 2,
"Message": "sample string 3",
"ErrorMessage": "sample string 4",
"Metadata": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfArrayOfReviewsDTOb1afPy6h xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.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_api.Models.DTOs">
<d2p1:ReviewsDTO>
<d2p1:Comment>sample string 4</d2p1:Comment>
<d2p1:CreatedAt>2025-12-20T08:45:07.454579+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-20T08:45:07.454579+03:00</d2p1:ReviewDate>
<d2p1:UpdatedAt>2025-12-20T08:45:07.454579+03:00</d2p1:UpdatedAt>
<d2p1:UserID>2</d2p1:UserID>
</d2p1:ReviewsDTO>
<d2p1:ReviewsDTO>
<d2p1:Comment>sample string 4</d2p1:Comment>
<d2p1:CreatedAt>2025-12-20T08:45:07.454579+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-20T08:45:07.454579+03:00</d2p1:ReviewDate>
<d2p1:UpdatedAt>2025-12-20T08:45:07.454579+03:00</d2p1:UpdatedAt>
<d2p1:UserID>2</d2p1:UserID>
</d2p1:ReviewsDTO>
</Data>
</ResponseModelOfArrayOfReviewsDTOb1afPy6h>