GET api/Food/GetFoodItemsForSale?NumberOfRecords={NumberOfRecords}&OffSet={OffSet}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
NumberOfRecords

integer

Required

OffSet

integer

Required

Body Parameters

W_OrderDateTimeLocation
NameDescriptionTypeAdditional information
OrderDateTime

date

Required

Data type: DateTime

Location

W_LocationCordinates

Required

Request Formats

application/json, text/json

Sample:
{
  "orderDateTime": "2019-07-21T00:42:17.4011304-07:00",
  "location": {
    "latitude": 1.1,
    "longitude": 2.1
  }
}

application/xml, text/xml

Sample:
<W_OrderDateTimeLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <Location>
    <latitude>1.1</latitude>
    <longitude>2.1</longitude>
  </Location>
  <OrderDateTime>2019-07-21T00:42:17.4011304-07:00</OrderDateTime>
</W_OrderDateTimeLocation>

multipart/form-data

Sample:
<W_OrderDateTimeLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><Location><latitude>1.1</latitude><longitude>2.1</longitude></Location><OrderDateTime>2019-07-21T00:42:17.4011304-07:00</OrderDateTime></W_OrderDateTimeLocation>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'W_OrderDateTimeLocation'.

Response Information

Resource Description

Collection of R_SaleItem
NameDescriptionTypeAdditional information
ChefID

integer

None.

FoodID

integer

None.

ChefBusinessName

string

None.

FoodName

string

None.

ListingID

integer

None.

ListingName

string

None.

Description

string

None.

FoodImageURL

string

None.

FoodType

string

None.

FoodEthnicity

string

None.

SpicyLevel

integer

None.

DelivaryFee

decimal number

None.

RemainingOrderQuantity

integer

None.

TastyScore

decimal number

None.

ChefScore

decimal number

None.

DelivaryMethod

DeliverMethod

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "chefID": 1,
    "foodID": 2,
    "chefBusinessName": "sample string 3",
    "foodName": "sample string 4",
    "listingID": 5,
    "listingName": "sample string 6",
    "description": "sample string 7",
    "foodImageURL": "sample string 8",
    "foodType": "sample string 9",
    "foodEthnicity": "sample string 10",
    "spicyLevel": 11,
    "delivaryFee": 12.0,
    "remainingOrderQuantity": 13,
    "tastyScore": 14.1,
    "chefScore": 15.1,
    "delivaryMethod": "ALL"
  },
  {
    "chefID": 1,
    "foodID": 2,
    "chefBusinessName": "sample string 3",
    "foodName": "sample string 4",
    "listingID": 5,
    "listingName": "sample string 6",
    "description": "sample string 7",
    "foodImageURL": "sample string 8",
    "foodType": "sample string 9",
    "foodEthnicity": "sample string 10",
    "spicyLevel": 11,
    "delivaryFee": 12.0,
    "remainingOrderQuantity": 13,
    "tastyScore": 14.1,
    "chefScore": 15.1,
    "delivaryMethod": "ALL"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_SaleItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_SaleItem>
    <ChefBusinessName>sample string 3</ChefBusinessName>
    <ChefID>1</ChefID>
    <ChefScore>15.1</ChefScore>
    <DelivaryFee>12</DelivaryFee>
    <DelivaryMethod>ALL</DelivaryMethod>
    <Description>sample string 7</Description>
    <FoodEthnicity>sample string 10</FoodEthnicity>
    <FoodID>2</FoodID>
    <FoodImageURL>sample string 8</FoodImageURL>
    <FoodName>sample string 4</FoodName>
    <FoodType>sample string 9</FoodType>
    <ListingID>5</ListingID>
    <ListingName>sample string 6</ListingName>
    <RemainingOrderQuantity>13</RemainingOrderQuantity>
    <SpicyLevel>11</SpicyLevel>
    <TastyScore>14.1</TastyScore>
  </R_SaleItem>
  <R_SaleItem>
    <ChefBusinessName>sample string 3</ChefBusinessName>
    <ChefID>1</ChefID>
    <ChefScore>15.1</ChefScore>
    <DelivaryFee>12</DelivaryFee>
    <DelivaryMethod>ALL</DelivaryMethod>
    <Description>sample string 7</Description>
    <FoodEthnicity>sample string 10</FoodEthnicity>
    <FoodID>2</FoodID>
    <FoodImageURL>sample string 8</FoodImageURL>
    <FoodName>sample string 4</FoodName>
    <FoodType>sample string 9</FoodType>
    <ListingID>5</ListingID>
    <ListingName>sample string 6</ListingName>
    <RemainingOrderQuantity>13</RemainingOrderQuantity>
    <SpicyLevel>11</SpicyLevel>
    <TastyScore>14.1</TastyScore>
  </R_SaleItem>
</ArrayOfR_SaleItem>

multipart/form-data

Sample:
<ArrayOfR_SaleItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_SaleItem><ChefBusinessName>sample string 3</ChefBusinessName><ChefID>1</ChefID><ChefScore>15.1</ChefScore><DelivaryFee>12</DelivaryFee><DelivaryMethod>ALL</DelivaryMethod><Description>sample string 7</Description><FoodEthnicity>sample string 10</FoodEthnicity><FoodID>2</FoodID><FoodImageURL>sample string 8</FoodImageURL><FoodName>sample string 4</FoodName><FoodType>sample string 9</FoodType><ListingID>5</ListingID><ListingName>sample string 6</ListingName><RemainingOrderQuantity>13</RemainingOrderQuantity><SpicyLevel>11</SpicyLevel><TastyScore>14.1</TastyScore></R_SaleItem><R_SaleItem><ChefBusinessName>sample string 3</ChefBusinessName><ChefID>1</ChefID><ChefScore>15.1</ChefScore><DelivaryFee>12</DelivaryFee><DelivaryMethod>ALL</DelivaryMethod><Description>sample string 7</Description><FoodEthnicity>sample string 10</FoodEthnicity><FoodID>2</FoodID><FoodImageURL>sample string 8</FoodImageURL><FoodName>sample string 4</FoodName><FoodType>sample string 9</FoodType><ListingID>5</ListingID><ListingName>sample string 6</ListingName><RemainingOrderQuantity>13</RemainingOrderQuantity><SpicyLevel>11</SpicyLevel><TastyScore>14.1</TastyScore></R_SaleItem></ArrayOfR_SaleItem>