GET api/Food/ReadAllFoodListingsByFoodID?FoodID={FoodID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
FoodID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of R_Listing
NameDescriptionTypeAdditional information
RegionIDs

Collection of integer

None.

Schedule

R_Schedule

None.

ChefID

integer

None.

ListingID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

FoodID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

ScheduleID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

FoodDays

Collection of Days

Required

StartTime

date

Required

Data type: Time

EndTime

date

Required

Data type: Time

NickName

string

Required

MaxQuantity

integer

Required

Range: inclusive between 10 and 250

LeadTime

integer

Required

Range: inclusive between 0 and 24

DelivaryFee

decimal number

Required

Data type: Currency

Range: inclusive between 0 and 50

ListingPortionPrice

Collection of W_ListItemPrice

None.

DeliverMethod

DeliverMethod

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "regionIDs": [
      1,
      1
    ],
    "schedule": {
      "chefID": 1,
      "listingIDs": "sample string 2",
      "scheduleID": 3,
      "startDate": "2019-12-10T10:07:30.492991-07:00",
      "endDate": "2019-12-10T10:07:30.492991-07:00",
      "nickName": "sample string 6"
    },
    "chefID": 1,
    "listingID": 2,
    "foodID": 3,
    "scheduleID": 4,
    "foodDays": [
      "SUNDAY",
      "SUNDAY"
    ],
    "startTime": "2019-12-10T10:07:30.492991-07:00",
    "endTime": "2019-12-10T10:07:30.492991-07:00",
    "nickName": "sample string 7",
    "maxQuantity": 8,
    "leadTime": 9,
    "delivaryFee": 10.0,
    "listingPortionPrice": [
      {
        "portionSize": "SMALL",
        "listItemPrice": 1.0
      },
      {
        "portionSize": "SMALL",
        "listItemPrice": 1.0
      }
    ],
    "deliverMethod": "ALL"
  },
  {
    "regionIDs": [
      1,
      1
    ],
    "schedule": {
      "chefID": 1,
      "listingIDs": "sample string 2",
      "scheduleID": 3,
      "startDate": "2019-12-10T10:07:30.492991-07:00",
      "endDate": "2019-12-10T10:07:30.492991-07:00",
      "nickName": "sample string 6"
    },
    "chefID": 1,
    "listingID": 2,
    "foodID": 3,
    "scheduleID": 4,
    "foodDays": [
      "SUNDAY",
      "SUNDAY"
    ],
    "startTime": "2019-12-10T10:07:30.492991-07:00",
    "endTime": "2019-12-10T10:07:30.492991-07:00",
    "nickName": "sample string 7",
    "maxQuantity": 8,
    "leadTime": 9,
    "delivaryFee": 10.0,
    "listingPortionPrice": [
      {
        "portionSize": "SMALL",
        "listItemPrice": 1.0
      },
      {
        "portionSize": "SMALL",
        "listItemPrice": 1.0
      }
    ],
    "deliverMethod": "ALL"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_Listing xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_Listing>
    <DelivaryFee>10</DelivaryFee>
    <DeliverMethod>ALL</DeliverMethod>
    <EndTime>2019-12-10T10:07:30.492991-07:00</EndTime>
    <FoodDays xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:Days>SUNDAY</d3p1:Days>
      <d3p1:Days>SUNDAY</d3p1:Days>
    </FoodDays>
    <FoodID>3</FoodID>
    <LeadTime>9</LeadTime>
    <ListingPortionPrice>
      <W_ListItemPrice>
        <ListItemPrice>1</ListItemPrice>
        <PortionSize>SMALL</PortionSize>
      </W_ListItemPrice>
      <W_ListItemPrice>
        <ListItemPrice>1</ListItemPrice>
        <PortionSize>SMALL</PortionSize>
      </W_ListItemPrice>
    </ListingPortionPrice>
    <MaxQuantity>8</MaxQuantity>
    <NickName>sample string 7</NickName>
    <ScheduleID>4</ScheduleID>
    <StartTime>2019-12-10T10:07:30.492991-07:00</StartTime>
    <ListingID>2</ListingID>
    <ChefID>1</ChefID>
    <RegionIDs xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>1</d3p1:long>
    </RegionIDs>
    <Schedule>
      <EndDate>2019-12-10T10:07:30.492991-07:00</EndDate>
      <NickName>sample string 6</NickName>
      <StartDate>2019-12-10T10:07:30.492991-07:00</StartDate>
      <ScheduleID>3</ScheduleID>
      <ChefID>1</ChefID>
      <ListingIDs>sample string 2</ListingIDs>
    </Schedule>
  </R_Listing>
  <R_Listing>
    <DelivaryFee>10</DelivaryFee>
    <DeliverMethod>ALL</DeliverMethod>
    <EndTime>2019-12-10T10:07:30.492991-07:00</EndTime>
    <FoodDays xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:Days>SUNDAY</d3p1:Days>
      <d3p1:Days>SUNDAY</d3p1:Days>
    </FoodDays>
    <FoodID>3</FoodID>
    <LeadTime>9</LeadTime>
    <ListingPortionPrice>
      <W_ListItemPrice>
        <ListItemPrice>1</ListItemPrice>
        <PortionSize>SMALL</PortionSize>
      </W_ListItemPrice>
      <W_ListItemPrice>
        <ListItemPrice>1</ListItemPrice>
        <PortionSize>SMALL</PortionSize>
      </W_ListItemPrice>
    </ListingPortionPrice>
    <MaxQuantity>8</MaxQuantity>
    <NickName>sample string 7</NickName>
    <ScheduleID>4</ScheduleID>
    <StartTime>2019-12-10T10:07:30.492991-07:00</StartTime>
    <ListingID>2</ListingID>
    <ChefID>1</ChefID>
    <RegionIDs xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>1</d3p1:long>
    </RegionIDs>
    <Schedule>
      <EndDate>2019-12-10T10:07:30.492991-07:00</EndDate>
      <NickName>sample string 6</NickName>
      <StartDate>2019-12-10T10:07:30.492991-07:00</StartDate>
      <ScheduleID>3</ScheduleID>
      <ChefID>1</ChefID>
      <ListingIDs>sample string 2</ListingIDs>
    </Schedule>
  </R_Listing>
</ArrayOfR_Listing>

multipart/form-data

Sample:
<ArrayOfR_Listing xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_Listing><DelivaryFee>10</DelivaryFee><DeliverMethod>ALL</DeliverMethod><EndTime>2019-12-10T10:07:30.492991-07:00</EndTime><FoodDays xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"><d3p1:Days>SUNDAY</d3p1:Days><d3p1:Days>SUNDAY</d3p1:Days></FoodDays><FoodID>3</FoodID><LeadTime>9</LeadTime><ListingPortionPrice><W_ListItemPrice><ListItemPrice>1</ListItemPrice><PortionSize>SMALL</PortionSize></W_ListItemPrice><W_ListItemPrice><ListItemPrice>1</ListItemPrice><PortionSize>SMALL</PortionSize></W_ListItemPrice></ListingPortionPrice><MaxQuantity>8</MaxQuantity><NickName>sample string 7</NickName><ScheduleID>4</ScheduleID><StartTime>2019-12-10T10:07:30.492991-07:00</StartTime><ListingID>2</ListingID><ChefID>1</ChefID><RegionIDs xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"><d3p1:long>1</d3p1:long><d3p1:long>1</d3p1:long></RegionIDs><Schedule><EndDate>2019-12-10T10:07:30.492991-07:00</EndDate><NickName>sample string 6</NickName><StartDate>2019-12-10T10:07:30.492991-07:00</StartDate><ScheduleID>3</ScheduleID><ChefID>1</ChefID><ListingIDs>sample string 2</ListingIDs></Schedule></R_Listing><R_Listing><DelivaryFee>10</DelivaryFee><DeliverMethod>ALL</DeliverMethod><EndTime>2019-12-10T10:07:30.492991-07:00</EndTime><FoodDays xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"><d3p1:Days>SUNDAY</d3p1:Days><d3p1:Days>SUNDAY</d3p1:Days></FoodDays><FoodID>3</FoodID><LeadTime>9</LeadTime><ListingPortionPrice><W_ListItemPrice><ListItemPrice>1</ListItemPrice><PortionSize>SMALL</PortionSize></W_ListItemPrice><W_ListItemPrice><ListItemPrice>1</ListItemPrice><PortionSize>SMALL</PortionSize></W_ListItemPrice></ListingPortionPrice><MaxQuantity>8</MaxQuantity><NickName>sample string 7</NickName><ScheduleID>4</ScheduleID><StartTime>2019-12-10T10:07:30.492991-07:00</StartTime><ListingID>2</ListingID><ChefID>1</ChefID><RegionIDs xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"><d3p1:long>1</d3p1:long><d3p1:long>1</d3p1:long></RegionIDs><Schedule><EndDate>2019-12-10T10:07:30.492991-07:00</EndDate><NickName>sample string 6</NickName><StartDate>2019-12-10T10:07:30.492991-07:00</StartDate><ScheduleID>3</ScheduleID><ChefID>1</ChefID><ListingIDs>sample string 2</ListingIDs></Schedule></R_Listing></ArrayOfR_Listing>