POST api/Food/Post

Request Information

URI Parameters

None.

Body Parameters

Collection of 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.

Request Formats

application/json, text/json

Sample:
[
  {
    "CreatedBy": "sample string 1",
    "CreatedOn": "2019-12-09T16:09:10.6362827+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-12-09T16:09:10.6362827+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"
    }
  },
  {
    "CreatedBy": "sample string 1",
    "CreatedOn": "2019-12-09T16:09:10.6362827+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-12-09T16:09:10.6362827+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:
<ArrayOfLiteFoodOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <LiteFoodOrder>
    <CreatedBy>sample string 1</CreatedBy>
    <CreatedOn>2019-12-09T16:09:10.6362827+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-12-09T16:09:10.6362827+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>
  <LiteFoodOrder>
    <CreatedBy>sample string 1</CreatedBy>
    <CreatedOn>2019-12-09T16:09:10.6362827+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-12-09T16:09:10.6362827+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>
</ArrayOfLiteFoodOrder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of integer

Response Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <long>1</long>
  <long>2</long>
</ArrayOflong>