GET api/ProductsAPI/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ProductName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
Des | string |
None. |
|
SalePrice | string |
None. |
|
BuyPrice | string |
None. |
|
Qty | integer |
None. |
|
MinQty | integer |
None. |
|
Cate_Id | integer |
None. |
|
Color | string |
None. |
|
Branch_Id | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "Des": "sample string 3", "SalePrice": "sample string 4", "BuyPrice": "sample string 5", "Qty": 6, "MinQty": 7, "Cate_Id": 8, "Color": "sample string 9", "Branch_Id": 10 }, { "Id": 1, "Name": "sample string 2", "Des": "sample string 3", "SalePrice": "sample string 4", "BuyPrice": "sample string 5", "Qty": 6, "MinQty": 7, "Cate_Id": 8, "Color": "sample string 9", "Branch_Id": 10 } ]
application/xml, text/xml
Sample:
<ArrayOfProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ODOAPI.Models"> <Product> <Branch_Id>10</Branch_Id> <BuyPrice>sample string 5</BuyPrice> <Cate_Id>8</Cate_Id> <Color>sample string 9</Color> <Des>sample string 3</Des> <Id>1</Id> <MinQty>7</MinQty> <Name>sample string 2</Name> <Qty>6</Qty> <SalePrice>sample string 4</SalePrice> </Product> <Product> <Branch_Id>10</Branch_Id> <BuyPrice>sample string 5</BuyPrice> <Cate_Id>8</Cate_Id> <Color>sample string 9</Color> <Des>sample string 3</Des> <Id>1</Id> <MinQty>7</MinQty> <Name>sample string 2</Name> <Qty>6</Qty> <SalePrice>sample string 4</SalePrice> </Product> </ArrayOfProduct>