GET Api/Product/AllProducts

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ProductModel
NameDescriptionTypeAdditional information
Pid

integer

None.

Name

string

None.

Price

integer

None.

Manifacturer

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Pid": 1,
    "Name": "sample string 2",
    "Price": 3,
    "Manifacturer": "sample string 4"
  },
  {
    "Pid": 1,
    "Name": "sample string 2",
    "Price": 3,
    "Manifacturer": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication6.Controllers">
  <ProductModel>
    <Manifacturer>sample string 4</Manifacturer>
    <Name>sample string 2</Name>
    <Pid>1</Pid>
    <Price>3</Price>
  </ProductModel>
  <ProductModel>
    <Manifacturer>sample string 4</Manifacturer>
    <Name>sample string 2</Name>
    <Pid>1</Pid>
    <Price>3</Price>
  </ProductModel>
</ArrayOfProductModel>