POST api/Product/PagedSearch
Request Information
URI Parameters
None.
Body Parameters
ProductSearchRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CategoryId | integer |
None. |
|
| BrandId | integer |
None. |
|
| Name | string |
None. |
|
| PriceFrom | decimal number |
None. |
|
| PriceTo | decimal number |
None. |
|
| Rating | Collection of integer |
None. |
|
| SortType | SortType |
None. |
|
| PageNumber | integer |
None. |
|
| PageSize | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"categoryId": 1,
"brandId": 2,
"name": "sample string 3",
"priceFrom": 1.0,
"priceTo": 1.0,
"rating": [
1,
2
],
"sortType": 0,
"pageNumber": 4,
"pageSize": 5
}
application/xml, text/xml
Sample:
<ProductSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XeniaEStoreAPI.Resource">
<BrandId>2</BrandId>
<CategoryId>1</CategoryId>
<Name>sample string 3</Name>
<PageNumber>4</PageNumber>
<PageSize>5</PageSize>
<PriceFrom>1</PriceFrom>
<PriceTo>1</PriceTo>
<Rating xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Rating>
<SortType>BEST_MATCH</SortType>
</ProductSearchRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APIResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | string |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| Type | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "sample string 1",
"data": {},
"message": "sample string 3",
"type": 4
}
application/xml, text/xml
Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XeniaEStoreAPI.Controllers.Resource"> <Data /> <Message>sample string 3</Message> <Status>sample string 1</Status> <Type>4</Type> </APIResponse>