GET api/Food/List?sortBy={sortBy}&showHistory={showHistory}&page={page}&count={count}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sortBy

string

Required

showHistory

boolean

Default value is False

page

integer

Default value is 0

count

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

LiteFoodOrderListResult
NameDescriptionTypeAdditional information
FoodOrders

Collection of LiteFoodOrderSummary

None.

TotalLength

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "FoodOrders": [
    {
      "Id": 1,
      "CustomerName": "sample string 2",
      "Type": "sample string 3",
      "EffectiveDate": "2019-09-16T18:23:55.4623509+00:00"
    },
    {
      "Id": 1,
      "CustomerName": "sample string 2",
      "Type": "sample string 3",
      "EffectiveDate": "2019-09-16T18:23:55.4623509+00:00"
    }
  ],
  "TotalLength": 1
}

application/xml, text/xml

Sample:
<LiteFoodOrderListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <FoodOrders>
    <LiteFoodOrderSummary>
      <CustomerName>sample string 2</CustomerName>
      <EffectiveDate>2019-09-16T18:23:55.4623509+00:00</EffectiveDate>
      <Id>1</Id>
      <Type>sample string 3</Type>
    </LiteFoodOrderSummary>
    <LiteFoodOrderSummary>
      <CustomerName>sample string 2</CustomerName>
      <EffectiveDate>2019-09-16T18:23:55.4623509+00:00</EffectiveDate>
      <Id>1</Id>
      <Type>sample string 3</Type>
    </LiteFoodOrderSummary>
  </FoodOrders>
  <TotalLength>1</TotalLength>
</LiteFoodOrderListResult>