GET api/ProductType/GetListProductType

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ProductTypeViewModel
NameDescriptionTypeAdditional information
ProductTypeId

globally unique identifier

None.

Title

string

None.

Color

string

None.

Price

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductTypeId": "c3db0811-7e70-400c-b8ac-803f4c334693",
    "Title": "sample string 2",
    "Color": "sample string 3",
    "Price": 4.0
  },
  {
    "ProductTypeId": "c3db0811-7e70-400c-b8ac-803f4c334693",
    "Title": "sample string 2",
    "Color": "sample string 3",
    "Price": 4.0
  }
]

text/html

Sample:
[{"ProductTypeId":"c3db0811-7e70-400c-b8ac-803f4c334693","Title":"sample string 2","Color":"sample string 3","Price":4.0},{"ProductTypeId":"c3db0811-7e70-400c-b8ac-803f4c334693","Title":"sample string 2","Color":"sample string 3","Price":4.0}]

application/xml, text/xml

Sample:
<ArrayOfProductTypeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fruta.ViewModels">
  <ProductTypeViewModel>
    <Color>sample string 3</Color>
    <Price>4</Price>
    <ProductTypeId>c3db0811-7e70-400c-b8ac-803f4c334693</ProductTypeId>
    <Title>sample string 2</Title>
  </ProductTypeViewModel>
  <ProductTypeViewModel>
    <Color>sample string 3</Color>
    <Price>4</Price>
    <ProductTypeId>c3db0811-7e70-400c-b8ac-803f4c334693</ProductTypeId>
    <Title>sample string 2</Title>
  </ProductTypeViewModel>
</ArrayOfProductTypeViewModel>