GET api/Products/{pid}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
pid | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ProductDTOName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
PartId | integer |
None. |
|
MfgId | integer |
None. |
|
MfgCode | string |
None. |
|
PartNumber | string |
None. |
|
StockCode | string |
None. |
|
Summary | string |
None. |
|
Description | string |
None. |
|
RetailPrice | decimal number |
None. |
|
DealerCost | decimal number |
None. |
|
CustomerPrice | decimal number |
None. |
|
ThumbnailURL | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "PartId": 2, "MfgId": 3, "MfgCode": "sample string 4", "PartNumber": "sample string 5", "StockCode": "sample string 6", "Summary": "sample string 7", "Description": "sample string 8", "RetailPrice": 1.0, "DealerCost": 1.0, "CustomerPrice": 1.0, "ThumbnailURL": "sample string 9" }
text/html, multipart/form-data, application/zip
Sample:
{"Id":1,"PartId":2,"MfgId":3,"MfgCode":"sample string 4","PartNumber":"sample string 5","StockCode":"sample string 6","Summary":"sample string 7","Description":"sample string 8","RetailPrice":1.0,"DealerCost":1.0,"CustomerPrice":1.0,"ThumbnailURL":"sample string 9"}
application/xml, text/xml
Sample:
<ProductDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DentaCad.DTO"> <CustomerPrice>1</CustomerPrice> <DealerCost>1</DealerCost> <Description>sample string 8</Description> <Id>1</Id> <MfgCode>sample string 4</MfgCode> <MfgId>3</MfgId> <PartId>2</PartId> <PartNumber>sample string 5</PartNumber> <RetailPrice>1</RetailPrice> <StockCode>sample string 6</StockCode> <Summary>sample string 7</Summary> <ThumbnailURL>sample string 9</ThumbnailURL> </ProductDTO>