GET api/Product

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ProductModel
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Price

decimal number

None.

WarantyPercent

integer

None.

Code

string

None.

ClientPrice

decimal number

None.

SoftwareModels

Collection of SoftwareModelsModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Name": "sample string 2",
    "Price": 3.0,
    "WarantyPercent": 4,
    "Code": "sample string 5",
    "ClientPrice": 6.0,
    "SoftwareModels": [
      {
        "ID": 1,
        "ProductID": 2,
        "Name": "sample string 3",
        "Price": 4.0,
        "WarantyPercent": 5,
        "Sharh": "sample string 6"
      },
      {
        "ID": 1,
        "ProductID": 2,
        "Name": "sample string 3",
        "Price": 4.0,
        "WarantyPercent": 5,
        "Sharh": "sample string 6"
      }
    ]
  },
  {
    "ID": 1,
    "Name": "sample string 2",
    "Price": 3.0,
    "WarantyPercent": 4,
    "Code": "sample string 5",
    "ClientPrice": 6.0,
    "SoftwareModels": [
      {
        "ID": 1,
        "ProductID": 2,
        "Name": "sample string 3",
        "Price": 4.0,
        "WarantyPercent": 5,
        "Sharh": "sample string 6"
      },
      {
        "ID": 1,
        "ProductID": 2,
        "Name": "sample string 3",
        "Price": 4.0,
        "WarantyPercent": 5,
        "Sharh": "sample string 6"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NoghostarModels.Models">
  <ProductModel>
    <ClientPrice>6</ClientPrice>
    <Code>sample string 5</Code>
    <ID>1</ID>
    <Name>sample string 2</Name>
    <Price>3</Price>
    <SoftwareModels>
      <SoftwareModelsModel>
        <ID>1</ID>
        <Name>sample string 3</Name>
        <Price>4</Price>
        <ProductID>2</ProductID>
        <Sharh>sample string 6</Sharh>
        <WarantyPercent>5</WarantyPercent>
      </SoftwareModelsModel>
      <SoftwareModelsModel>
        <ID>1</ID>
        <Name>sample string 3</Name>
        <Price>4</Price>
        <ProductID>2</ProductID>
        <Sharh>sample string 6</Sharh>
        <WarantyPercent>5</WarantyPercent>
      </SoftwareModelsModel>
    </SoftwareModels>
    <WarantyPercent>4</WarantyPercent>
  </ProductModel>
  <ProductModel>
    <ClientPrice>6</ClientPrice>
    <Code>sample string 5</Code>
    <ID>1</ID>
    <Name>sample string 2</Name>
    <Price>3</Price>
    <SoftwareModels>
      <SoftwareModelsModel>
        <ID>1</ID>
        <Name>sample string 3</Name>
        <Price>4</Price>
        <ProductID>2</ProductID>
        <Sharh>sample string 6</Sharh>
        <WarantyPercent>5</WarantyPercent>
      </SoftwareModelsModel>
      <SoftwareModelsModel>
        <ID>1</ID>
        <Name>sample string 3</Name>
        <Price>4</Price>
        <ProductID>2</ProductID>
        <Sharh>sample string 6</Sharh>
        <WarantyPercent>5</WarantyPercent>
      </SoftwareModelsModel>
    </SoftwareModels>
    <WarantyPercent>4</WarantyPercent>
  </ProductModel>
</ArrayOfProductModel>