GET api/Food/GetAllFoodListings

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of R_Listing
NameDescriptionTypeAdditional information
RegionIDs

Collection of integer

None.

Schedule

R_Schedule

None.

FoodItemName

string

None.

AddressIDs

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

MaxQuantity

integer

Required

Range: inclusive between 10 and 250

LeadTime

integer

Required

Range: inclusive between 0 and 24

ListItemCost

decimal number

Required

Data type: Currency

Range: inclusive between 0 and 100

DeliverMethod

DeliverMethod

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "regionIDs": [
      1,
      2
    ],
    "schedule": {
      "listingIDs": "sample string 1",
      "scheduleID": 2,
      "startDate": "2020-07-11T08:04:32.1199011-07:00",
      "endDate": "2020-07-11T08:04:32.1199011-07:00",
      "nickName": "sample string 5"
    },
    "foodItemName": "sample string 1",
    "addressIDs": [
      1,
      2
    ],
    "listingID": 2,
    "foodID": 3,
    "scheduleID": 4,
    "foodDays": [
      "SUNDAY",
      "SUNDAY"
    ],
    "startTime": "2020-07-11T08:04:32.1199011-07:00",
    "endTime": "2020-07-11T08:04:32.1199011-07:00",
    "maxQuantity": 7,
    "leadTime": 8,
    "listItemCost": 9.0,
    "deliverMethod": "PICKUP"
  },
  {
    "regionIDs": [
      1,
      2
    ],
    "schedule": {
      "listingIDs": "sample string 1",
      "scheduleID": 2,
      "startDate": "2020-07-11T08:04:32.1199011-07:00",
      "endDate": "2020-07-11T08:04:32.1199011-07:00",
      "nickName": "sample string 5"
    },
    "foodItemName": "sample string 1",
    "addressIDs": [
      1,
      2
    ],
    "listingID": 2,
    "foodID": 3,
    "scheduleID": 4,
    "foodDays": [
      "SUNDAY",
      "SUNDAY"
    ],
    "startTime": "2020-07-11T08:04:32.1199011-07:00",
    "endTime": "2020-07-11T08:04:32.1199011-07:00",
    "maxQuantity": 7,
    "leadTime": 8,
    "listItemCost": 9.0,
    "deliverMethod": "PICKUP"
  }
]

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>
    <DeliverMethod>PICKUP</DeliverMethod>
    <EndTime>2020-07-11T08:04:32.1199011-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>8</LeadTime>
    <ListItemCost>9</ListItemCost>
    <MaxQuantity>7</MaxQuantity>
    <ScheduleID>4</ScheduleID>
    <StartTime>2020-07-11T08:04:32.1199011-07:00</StartTime>
    <ListingID>2</ListingID>
    <AddressIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </AddressIDs>
    <FoodItemName>sample string 1</FoodItemName>
    <RegionIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </RegionIDs>
    <Schedule>
      <EndDate>2020-07-11T08:04:32.1199011-07:00</EndDate>
      <NickName>sample string 5</NickName>
      <StartDate>2020-07-11T08:04:32.1199011-07:00</StartDate>
      <ScheduleID>2</ScheduleID>
      <ListingIDs>sample string 1</ListingIDs>
    </Schedule>
  </R_Listing>
  <R_Listing>
    <DeliverMethod>PICKUP</DeliverMethod>
    <EndTime>2020-07-11T08:04:32.1199011-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>8</LeadTime>
    <ListItemCost>9</ListItemCost>
    <MaxQuantity>7</MaxQuantity>
    <ScheduleID>4</ScheduleID>
    <StartTime>2020-07-11T08:04:32.1199011-07:00</StartTime>
    <ListingID>2</ListingID>
    <AddressIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </AddressIDs>
    <FoodItemName>sample string 1</FoodItemName>
    <RegionIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </RegionIDs>
    <Schedule>
      <EndDate>2020-07-11T08:04:32.1199011-07:00</EndDate>
      <NickName>sample string 5</NickName>
      <StartDate>2020-07-11T08:04:32.1199011-07:00</StartDate>
      <ScheduleID>2</ScheduleID>
      <ListingIDs>sample string 1</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><DeliverMethod>PICKUP</DeliverMethod><EndTime>2020-07-11T08:04:32.1199011-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>8</LeadTime><ListItemCost>9</ListItemCost><MaxQuantity>7</MaxQuantity><ScheduleID>4</ScheduleID><StartTime>2020-07-11T08:04:32.1199011-07:00</StartTime><ListingID>2</ListingID><AddressIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:long>1</d3p1:long><d3p1:long>2</d3p1:long></AddressIDs><FoodItemName>sample string 1</FoodItemName><RegionIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:long>1</d3p1:long><d3p1:long>2</d3p1:long></RegionIDs><Schedule><EndDate>2020-07-11T08:04:32.1199011-07:00</EndDate><NickName>sample string 5</NickName><StartDate>2020-07-11T08:04:32.1199011-07:00</StartDate><ScheduleID>2</ScheduleID><ListingIDs>sample string 1</ListingIDs></Schedule></R_Listing><R_Listing><DeliverMethod>PICKUP</DeliverMethod><EndTime>2020-07-11T08:04:32.1199011-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>8</LeadTime><ListItemCost>9</ListItemCost><MaxQuantity>7</MaxQuantity><ScheduleID>4</ScheduleID><StartTime>2020-07-11T08:04:32.1199011-07:00</StartTime><ListingID>2</ListingID><AddressIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:long>1</d3p1:long><d3p1:long>2</d3p1:long></AddressIDs><FoodItemName>sample string 1</FoodItemName><RegionIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:long>1</d3p1:long><d3p1:long>2</d3p1:long></RegionIDs><Schedule><EndDate>2020-07-11T08:04:32.1199011-07:00</EndDate><NickName>sample string 5</NickName><StartDate>2020-07-11T08:04:32.1199011-07:00</StartDate><ScheduleID>2</ScheduleID><ListingIDs>sample string 1</ListingIDs></Schedule></R_Listing></ArrayOfR_Listing>