GET api/Food/Get/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

LiteFoodOrder
NameDescriptionTypeAdditional information
CreatedBy

string

None.

CreatedOn

date

None.

DeliveryAddress

LiteAddress

None.

Id

integer

None.

IsPaid

boolean

None.

Notes

string

None.

EffectiveDate

date

None.

OrderProducts

Collection of LiteFoodOrderProduct

None.

PickUpLocation

LiteFoodSupplierLocation

None.

Response Formats

application/json, text/json

Sample:
{
  "CreatedBy": "sample string 1",
  "CreatedOn": "2019-09-16T18:33:13.9749143+00:00",
  "DeliveryAddress": {
    "AddressCity": "sample string 1",
    "AddressLat": 1.0,
    "AddressLine1": "sample string 2",
    "AddressLine2": "sample string 3",
    "AddressLng": 1.0,
    "AddressPostCode": "sample string 4"
  },
  "Id": 3,
  "IsPaid": true,
  "Notes": "sample string 5",
  "EffectiveDate": "2019-09-16T18:33:13.9749143+00:00",
  "OrderProducts": [
    {
      "Id": 1,
      "Product": {
        "Id": 1,
        "ImageUrl": "sample string 2",
        "Name": "sample string 3",
        "ProductType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "Unit": "sample string 4",
        "UnitPrice": 5.0
      },
      "Qty": 2.0,
      "UnitPrice": 3.0
    },
    {
      "Id": 1,
      "Product": {
        "Id": 1,
        "ImageUrl": "sample string 2",
        "Name": "sample string 3",
        "ProductType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "Unit": "sample string 4",
        "UnitPrice": 5.0
      },
      "Qty": 2.0,
      "UnitPrice": 3.0
    }
  ],
  "PickUpLocation": {
    "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"
  }
}

application/xml, text/xml

Sample:
<LiteFoodOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <CreatedBy>sample string 1</CreatedBy>
  <CreatedOn>2019-09-16T18:33:13.9749143+00:00</CreatedOn>
  <DeliveryAddress>
    <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>
  </DeliveryAddress>
  <EffectiveDate>2019-09-16T18:33:13.9749143+00:00</EffectiveDate>
  <Id>3</Id>
  <IsPaid>true</IsPaid>
  <Notes>sample string 5</Notes>
  <OrderProducts>
    <LiteFoodOrderProduct>
      <Id>1</Id>
      <Product>
        <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>
      </Product>
      <Qty>2</Qty>
      <UnitPrice>3</UnitPrice>
    </LiteFoodOrderProduct>
    <LiteFoodOrderProduct>
      <Id>1</Id>
      <Product>
        <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>
      </Product>
      <Qty>2</Qty>
      <UnitPrice>3</UnitPrice>
    </LiteFoodOrderProduct>
  </OrderProducts>
  <PickUpLocation>
    <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>
  </PickUpLocation>
</LiteFoodOrder>