POST api/Product/ListAll
Request Information
URI Parameters
None.
Body Parameters
GetListProductRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
|
| Type | integer |
None. |
|
| CategoryId | integer |
None. |
|
| KeySearch | string |
None. |
|
| ManufacturerId | integer |
None. |
|
| HasInventory | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"pageSize": 1,
"pageIndex": 1,
"type": 1,
"categoryId": 1,
"keySearch": "sample string 1",
"manufacturerId": 1,
"hasInventory": true
}
application/xml, text/xml
Sample:
<GetListProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Product"> <CategoryId>1</CategoryId> <HasInventory>true</HasInventory> <KeySearch>sample string 1</KeySearch> <ManufacturerId>1</ManufacturerId> <PageIndex>1</PageIndex> <PageSize>1</PageSize> <Type>1</Type> </GetListProductRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ProductsInfoCountResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PriceTotal | decimal number |
None. |
|
| PriceCostTotal | decimal number |
None. |
|
| InventoryTotal | integer |
None. |
|
| ImportedQuantityTotal | integer |
None. |
|
| SoldQuantityTotal | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"priceTotal": 1.0,
"priceCostTotal": 2.0,
"inventoryTotal": 3,
"importedQuantityTotal": 4,
"soldQuantityTotal": 5
}
application/xml, text/xml
Sample:
<ProductsInfoCountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Response.Product"> <ImportedQuantityTotal>4</ImportedQuantityTotal> <InventoryTotal>3</InventoryTotal> <PriceCostTotal>2</PriceCostTotal> <PriceTotal>1</PriceTotal> <SoldQuantityTotal>5</SoldQuantityTotal> </ProductsInfoCountResponse>