GET api/Food/GetMenu

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of LiteFoodSupplier
NameDescriptionTypeAdditional information
AllowDelivery

boolean

None.

Id

integer

None.

ImageUrl

string

None.

Name

string

None.

PickUpLocations

Collection of LiteFoodSupplierLocation

None.

Products

Collection of LiteFoodProduct

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AllowDelivery": true,
    "Id": 2,
    "ImageUrl": "sample string 3",
    "Name": "sample string 4",
    "PickUpLocations": [
      {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "Products": [
      {
        "Id": 1,
        "ImageUrl": "sample string 2",
        "Name": "sample string 3",
        "ProductType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "Unit": "sample string 4",
        "UnitPrice": 5.0
      },
      {
        "Id": 1,
        "ImageUrl": "sample string 2",
        "Name": "sample string 3",
        "ProductType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "Unit": "sample string 4",
        "UnitPrice": 5.0
      }
    ]
  },
  {
    "AllowDelivery": true,
    "Id": 2,
    "ImageUrl": "sample string 3",
    "Name": "sample string 4",
    "PickUpLocations": [
      {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "Products": [
      {
        "Id": 1,
        "ImageUrl": "sample string 2",
        "Name": "sample string 3",
        "ProductType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "Unit": "sample string 4",
        "UnitPrice": 5.0
      },
      {
        "Id": 1,
        "ImageUrl": "sample string 2",
        "Name": "sample string 3",
        "ProductType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "Unit": "sample string 4",
        "UnitPrice": 5.0
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfLiteFoodSupplier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <LiteFoodSupplier>
    <AllowDelivery>true</AllowDelivery>
    <Id>2</Id>
    <ImageUrl>sample string 3</ImageUrl>
    <Name>sample string 4</Name>
    <PickUpLocations>
      <LiteFoodSupplierLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </LiteFoodSupplierLocation>
      <LiteFoodSupplierLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </LiteFoodSupplierLocation>
    </PickUpLocations>
    <Products>
      <LiteFoodProduct>
        <Id>1</Id>
        <ImageUrl>sample string 2</ImageUrl>
        <Name>sample string 3</Name>
        <ProductType>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </ProductType>
        <Unit>sample string 4</Unit>
        <UnitPrice>5</UnitPrice>
      </LiteFoodProduct>
      <LiteFoodProduct>
        <Id>1</Id>
        <ImageUrl>sample string 2</ImageUrl>
        <Name>sample string 3</Name>
        <ProductType>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </ProductType>
        <Unit>sample string 4</Unit>
        <UnitPrice>5</UnitPrice>
      </LiteFoodProduct>
    </Products>
  </LiteFoodSupplier>
  <LiteFoodSupplier>
    <AllowDelivery>true</AllowDelivery>
    <Id>2</Id>
    <ImageUrl>sample string 3</ImageUrl>
    <Name>sample string 4</Name>
    <PickUpLocations>
      <LiteFoodSupplierLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </LiteFoodSupplierLocation>
      <LiteFoodSupplierLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </LiteFoodSupplierLocation>
    </PickUpLocations>
    <Products>
      <LiteFoodProduct>
        <Id>1</Id>
        <ImageUrl>sample string 2</ImageUrl>
        <Name>sample string 3</Name>
        <ProductType>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </ProductType>
        <Unit>sample string 4</Unit>
        <UnitPrice>5</UnitPrice>
      </LiteFoodProduct>
      <LiteFoodProduct>
        <Id>1</Id>
        <ImageUrl>sample string 2</ImageUrl>
        <Name>sample string 3</Name>
        <ProductType>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </ProductType>
        <Unit>sample string 4</Unit>
        <UnitPrice>5</UnitPrice>
      </LiteFoodProduct>
    </Products>
  </LiteFoodSupplier>
</ArrayOfLiteFoodSupplier>