GET api/pod/product/ListProduct?offset={offset}&size={size}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
offset

integer

Required

size

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ProductViewModel
NameDescriptionTypeAdditional information
EntityId

integer

None.

AvailableCount

decimal number

None.

Name

string

Required

Price

decimal number

Required

Discount

decimal number

Required

CanComment

boolean

None.

CanLike

boolean

None.

IsEnabled

boolean

None.

Description

string

None.

Result

string

None.

HasErrors

boolean

None.

Message

Collection of string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "EntityId": 1,
    "AvailableCount": 2.0,
    "Name": "sample string 3",
    "Price": 4.0,
    "Discount": 5.0,
    "CanComment": true,
    "CanLike": true,
    "IsEnabled": true,
    "Description": "sample string 9",
    "Result": "sample string 10",
    "HasErrors": false,
    "Message": []
  },
  {
    "EntityId": 1,
    "AvailableCount": 2.0,
    "Name": "sample string 3",
    "Price": 4.0,
    "Discount": 5.0,
    "CanComment": true,
    "CanLike": true,
    "IsEnabled": true,
    "Description": "sample string 9",
    "Result": "sample string 10",
    "HasErrors": false,
    "Message": []
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <ProductViewModel>
    <Message xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
    <Result>sample string 10</Result>
    <AvailableCount>2</AvailableCount>
    <CanComment>true</CanComment>
    <CanLike>true</CanLike>
    <Description>sample string 9</Description>
    <Discount>5</Discount>
    <IsEnabled>true</IsEnabled>
    <Name>sample string 3</Name>
    <Price>4</Price>
    <EntityId>1</EntityId>
  </ProductViewModel>
  <ProductViewModel>
    <Message xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
    <Result>sample string 10</Result>
    <AvailableCount>2</AvailableCount>
    <CanComment>true</CanComment>
    <CanLike>true</CanLike>
    <Description>sample string 9</Description>
    <Discount>5</Discount>
    <IsEnabled>true</IsEnabled>
    <Name>sample string 3</Name>
    <Price>4</Price>
    <EntityId>1</EntityId>
  </ProductViewModel>
</ArrayOfProductViewModel>