GET api/Product/GetProducts

Gets list of all products

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of BO.Models.Products.ProductBasic
NameDescriptionTypeAdditional information
ProductId

integer

None.

Name

string

None.

Size

string

None.

Quantity

integer

None.

MinQuantity

integer

None.

ProductCategoryId

integer

None.

Active

boolean

None.

Price

decimal number

None.

FormattedPrice

string

None.

LastCost

decimal number

None.

Description

string

None.

SellByThe

integer

None.

OrderByThe

integer

None.

ImageId

integer

None.

NZPrice

decimal number

None.

GBPrice

decimal number

None.

SmallImage

BO.Image

None.

MasterPrice

decimal number

Required

Data type: Currency

NZMasterPrice

decimal number

Required

Data type: Currency

GBMasterPrice

decimal number

Required

Data type: Currency

StockLevel

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "2",
    "ProductId": 1,
    "Name": "sample string 2",
    "Size": "sample string 3",
    "Quantity": 4,
    "MinQuantity": 5,
    "ProductCategoryId": 6,
    "Active": true,
    "Price": 8.0,
    "FormattedPrice": "sample string 9",
    "LastCost": 10.0,
    "Description": "sample string 11",
    "SellByThe": 12,
    "OrderByThe": 13,
    "ImageId": 14,
    "NZPrice": 15.0,
    "GBPrice": 16.0,
    "SmallImage": {
      "$id": "3",
      "ImageId": 1,
      "Name": "sample string 2",
      "Alt": "sample string 3",
      "ProductId": 4,
      "ContentType": "sample string 5"
    },
    "MasterPrice": 6.4,
    "NZMasterPrice": 12.0,
    "GBMasterPrice": 12.8,
    "StockLevel": 17
  },
  {
    "$ref": "2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductBasic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BO.Models.Products">
  <ProductBasic>
    <Active>true</Active>
    <Description>sample string 11</Description>
    <FormattedPrice>sample string 9</FormattedPrice>
    <GBPrice>16</GBPrice>
    <ImageId>14</ImageId>
    <LastCost>10</LastCost>
    <MinQuantity>5</MinQuantity>
    <NZPrice>15</NZPrice>
    <Name>sample string 2</Name>
    <OrderByThe>13</OrderByThe>
    <Price>8</Price>
    <ProductCategoryId>6</ProductCategoryId>
    <ProductId>1</ProductId>
    <Quantity>4</Quantity>
    <SellByThe>12</SellByThe>
    <Size>sample string 3</Size>
    <SmallImage xmlns:d3p1="http://schemas.datacontract.org/2004/07/BO">
      <d3p1:Alt>sample string 3</d3p1:Alt>
      <d3p1:ContentType>sample string 5</d3p1:ContentType>
      <d3p1:ImageId>1</d3p1:ImageId>
      <d3p1:Name>sample string 2</d3p1:Name>
      <d3p1:ProductId>4</d3p1:ProductId>
    </SmallImage>
    <StockLevel>17</StockLevel>
  </ProductBasic>
  <ProductBasic>
    <Active>true</Active>
    <Description>sample string 11</Description>
    <FormattedPrice>sample string 9</FormattedPrice>
    <GBPrice>16</GBPrice>
    <ImageId>14</ImageId>
    <LastCost>10</LastCost>
    <MinQuantity>5</MinQuantity>
    <NZPrice>15</NZPrice>
    <Name>sample string 2</Name>
    <OrderByThe>13</OrderByThe>
    <Price>8</Price>
    <ProductCategoryId>6</ProductCategoryId>
    <ProductId>1</ProductId>
    <Quantity>4</Quantity>
    <SellByThe>12</SellByThe>
    <Size>sample string 3</Size>
    <SmallImage xmlns:d3p1="http://schemas.datacontract.org/2004/07/BO">
      <d3p1:Alt>sample string 3</d3p1:Alt>
      <d3p1:ContentType>sample string 5</d3p1:ContentType>
      <d3p1:ImageId>1</d3p1:ImageId>
      <d3p1:Name>sample string 2</d3p1:Name>
      <d3p1:ProductId>4</d3p1:ProductId>
    </SmallImage>
    <StockLevel>17</StockLevel>
  </ProductBasic>
</ArrayOfProductBasic>