GET api/Product/GetListProduct?ProductGroupId={ProductGroupId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ProductGroupId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ProductViewModel
NameDescriptionTypeAdditional information
ProductId

globally unique identifier

None.

Title

string

None.

Description

string

None.

ContentText

string

None.

New

boolean

None.

Soon

boolean

None.

IsActive

boolean

None.

CreationDate

date

None.

ModifyDate

date

None.

OrderShow

integer

None.

PhotoPath

string

None.

ProductType

Collection of ProductTypeViewModel

None.

ProductGroup

ProductGroupsViewModel

None.

ProductUnit

ProductUnitViewModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductId": "15aa8089-7a24-4384-9c0a-4af1ac065031",
    "Title": "sample string 2",
    "Description": "sample string 3",
    "ContentText": "sample string 4",
    "New": true,
    "Soon": true,
    "IsActive": true,
    "CreationDate": "2019-05-25T08:43:23.9511517+04:30",
    "ModifyDate": "2019-05-25T08:43:23.9511517+04:30",
    "OrderShow": 5,
    "PhotoPath": "sample string 6",
    "ProductType": [
      {
        "ProductTypeId": "d770caa0-bca6-4d90-9177-bd365e593958",
        "Title": "sample string 2",
        "Color": "sample string 3",
        "Price": 4.0
      },
      {
        "ProductTypeId": "d770caa0-bca6-4d90-9177-bd365e593958",
        "Title": "sample string 2",
        "Color": "sample string 3",
        "Price": 4.0
      }
    ],
    "ProductGroup": {
      "ProductGroupId": "877388e5-6dff-471e-afc3-ef0c8c6d0e9a",
      "Title": "sample string 2",
      "Description": "sample string 3",
      "OrderShow": 4,
      "PhotoPath": "sample string 5"
    },
    "ProductUnit": {
      "ProductUnitId": "d947d5f7-de03-4757-a8c8-a5257602ada1",
      "Title": "sample string 2",
      "Title_en": "sample string 3"
    }
  },
  {
    "ProductId": "15aa8089-7a24-4384-9c0a-4af1ac065031",
    "Title": "sample string 2",
    "Description": "sample string 3",
    "ContentText": "sample string 4",
    "New": true,
    "Soon": true,
    "IsActive": true,
    "CreationDate": "2019-05-25T08:43:23.9511517+04:30",
    "ModifyDate": "2019-05-25T08:43:23.9511517+04:30",
    "OrderShow": 5,
    "PhotoPath": "sample string 6",
    "ProductType": [
      {
        "ProductTypeId": "d770caa0-bca6-4d90-9177-bd365e593958",
        "Title": "sample string 2",
        "Color": "sample string 3",
        "Price": 4.0
      },
      {
        "ProductTypeId": "d770caa0-bca6-4d90-9177-bd365e593958",
        "Title": "sample string 2",
        "Color": "sample string 3",
        "Price": 4.0
      }
    ],
    "ProductGroup": {
      "ProductGroupId": "877388e5-6dff-471e-afc3-ef0c8c6d0e9a",
      "Title": "sample string 2",
      "Description": "sample string 3",
      "OrderShow": 4,
      "PhotoPath": "sample string 5"
    },
    "ProductUnit": {
      "ProductUnitId": "d947d5f7-de03-4757-a8c8-a5257602ada1",
      "Title": "sample string 2",
      "Title_en": "sample string 3"
    }
  }
]

text/html

Sample:
[{"ProductId":"15aa8089-7a24-4384-9c0a-4af1ac065031","Title":"sample string 2","Description":"sample string 3","ContentText":"sample string 4","New":true,"Soon":true,"IsActive":true,"CreationDate":"2019-05-25T08:43:23.9511517+04:30","ModifyDate":"2019-05-25T08:43:23.9511517+04:30","OrderShow":5,"PhotoPath":"sample string 6","ProductType":[{"ProductTypeId":"d770caa0-bca6-4d90-9177-bd365e593958","Title":"sample string 2","Color":"sample string 3","Price":4.0},{"ProductTypeId":"d770caa0-bca6-4d90-9177-bd365e593958","Title":"sample string 2","Color":"sample string 3","Price":4.0}],"ProductGroup":{"ProductGroupId":"877388e5-6dff-471e-afc3-ef0c8c6d0e9a","Title":"sample string 2","Description":"sample string 3","OrderShow":4,"PhotoPath":"sample string 5"},"ProductUnit":{"ProductUnitId":"d947d5f7-de03-4757-a8c8-a5257602ada1","Title":"sample string 2","Title_en":"sample string 3"}},{"ProductId":"15aa8089-7a24-4384-9c0a-4af1ac065031","Title":"sample string 2","Description":"sample string 3","ContentText":"sample string 4","New":true,"Soon":true,"IsActive":true,"CreationDate":"2019-05-25T08:43:23.9511517+04:30","ModifyDate":"2019-05-25T08:43:23.9511517+04:30","OrderShow":5,"PhotoPath":"sample string 6","ProductType":[{"ProductTypeId":"d770caa0-bca6-4d90-9177-bd365e593958","Title":"sample string 2","Color":"sample string 3","Price":4.0},{"ProductTypeId":"d770caa0-bca6-4d90-9177-bd365e593958","Title":"sample string 2","Color":"sample string 3","Price":4.0}],"ProductGroup":{"ProductGroupId":"877388e5-6dff-471e-afc3-ef0c8c6d0e9a","Title":"sample string 2","Description":"sample string 3","OrderShow":4,"PhotoPath":"sample string 5"},"ProductUnit":{"ProductUnitId":"d947d5f7-de03-4757-a8c8-a5257602ada1","Title":"sample string 2","Title_en":"sample string 3"}}]

application/xml, text/xml

Sample:
<ArrayOfProductViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fruta.ViewModels">
  <ProductViewModel>
    <ContentText>sample string 4</ContentText>
    <CreationDate>2019-05-25T08:43:23.9511517+04:30</CreationDate>
    <Description>sample string 3</Description>
    <IsActive>true</IsActive>
    <ModifyDate>2019-05-25T08:43:23.9511517+04:30</ModifyDate>
    <New>true</New>
    <OrderShow>5</OrderShow>
    <PhotoPath>sample string 6</PhotoPath>
    <ProductGroup>
      <Description>sample string 3</Description>
      <OrderShow>4</OrderShow>
      <PhotoPath>sample string 5</PhotoPath>
      <ProductGroupId>877388e5-6dff-471e-afc3-ef0c8c6d0e9a</ProductGroupId>
      <Title>sample string 2</Title>
    </ProductGroup>
    <ProductId>15aa8089-7a24-4384-9c0a-4af1ac065031</ProductId>
    <ProductType>
      <ProductTypeViewModel>
        <Color>sample string 3</Color>
        <Price>4</Price>
        <ProductTypeId>d770caa0-bca6-4d90-9177-bd365e593958</ProductTypeId>
        <Title>sample string 2</Title>
      </ProductTypeViewModel>
      <ProductTypeViewModel>
        <Color>sample string 3</Color>
        <Price>4</Price>
        <ProductTypeId>d770caa0-bca6-4d90-9177-bd365e593958</ProductTypeId>
        <Title>sample string 2</Title>
      </ProductTypeViewModel>
    </ProductType>
    <ProductUnit>
      <ProductUnitId>d947d5f7-de03-4757-a8c8-a5257602ada1</ProductUnitId>
      <Title>sample string 2</Title>
      <Title_en>sample string 3</Title_en>
    </ProductUnit>
    <Soon>true</Soon>
    <Title>sample string 2</Title>
  </ProductViewModel>
  <ProductViewModel>
    <ContentText>sample string 4</ContentText>
    <CreationDate>2019-05-25T08:43:23.9511517+04:30</CreationDate>
    <Description>sample string 3</Description>
    <IsActive>true</IsActive>
    <ModifyDate>2019-05-25T08:43:23.9511517+04:30</ModifyDate>
    <New>true</New>
    <OrderShow>5</OrderShow>
    <PhotoPath>sample string 6</PhotoPath>
    <ProductGroup>
      <Description>sample string 3</Description>
      <OrderShow>4</OrderShow>
      <PhotoPath>sample string 5</PhotoPath>
      <ProductGroupId>877388e5-6dff-471e-afc3-ef0c8c6d0e9a</ProductGroupId>
      <Title>sample string 2</Title>
    </ProductGroup>
    <ProductId>15aa8089-7a24-4384-9c0a-4af1ac065031</ProductId>
    <ProductType>
      <ProductTypeViewModel>
        <Color>sample string 3</Color>
        <Price>4</Price>
        <ProductTypeId>d770caa0-bca6-4d90-9177-bd365e593958</ProductTypeId>
        <Title>sample string 2</Title>
      </ProductTypeViewModel>
      <ProductTypeViewModel>
        <Color>sample string 3</Color>
        <Price>4</Price>
        <ProductTypeId>d770caa0-bca6-4d90-9177-bd365e593958</ProductTypeId>
        <Title>sample string 2</Title>
      </ProductTypeViewModel>
    </ProductType>
    <ProductUnit>
      <ProductUnitId>d947d5f7-de03-4757-a8c8-a5257602ada1</ProductUnitId>
      <Title>sample string 2</Title>
      <Title_en>sample string 3</Title_en>
    </ProductUnit>
    <Soon>true</Soon>
    <Title>sample string 2</Title>
  </ProductViewModel>
</ArrayOfProductViewModel>