GET api/Food/GetOrderItemAvailability

Request Information

URI Parameters

None.

Body Parameters

Collection of W_OrderItem
NameDescriptionTypeAdditional information
ListingID

integer

Required

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

Quantity

integer

Required

Range: inclusive between 1 and 1000

AddressID

integer

Required

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

OrderRequiredDateTime

date

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "listingID": 1,
    "quantity": 2,
    "addressID": 3,
    "orderRequiredDateTime": "2019-09-14T23:25:04.0338937-07:00"
  },
  {
    "listingID": 1,
    "quantity": 2,
    "addressID": 3,
    "orderRequiredDateTime": "2019-09-14T23:25:04.0338937-07:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfW_OrderItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <W_OrderItem>
    <AddressID>3</AddressID>
    <ListingID>1</ListingID>
    <OrderRequiredDateTime>2019-09-14T23:25:04.0338937-07:00</OrderRequiredDateTime>
    <Quantity>2</Quantity>
  </W_OrderItem>
  <W_OrderItem>
    <AddressID>3</AddressID>
    <ListingID>1</ListingID>
    <OrderRequiredDateTime>2019-09-14T23:25:04.0338937-07:00</OrderRequiredDateTime>
    <Quantity>2</Quantity>
  </W_OrderItem>
</ArrayOfW_OrderItem>

multipart/form-data

Sample:
<ArrayOfW_OrderItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><W_OrderItem><AddressID>3</AddressID><ListingID>1</ListingID><OrderRequiredDateTime>2019-09-14T23:25:04.0338937-07:00</OrderRequiredDateTime><Quantity>2</Quantity></W_OrderItem><W_OrderItem><AddressID>3</AddressID><ListingID>1</ListingID><OrderRequiredDateTime>2019-09-14T23:25:04.0338937-07:00</OrderRequiredDateTime><Quantity>2</Quantity></W_OrderItem></ArrayOfW_OrderItem>

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 'List`1'.

Response Information

Resource Description

Collection of R_OrderItemStatus
NameDescriptionTypeAdditional information
ListItemID

integer

None.

RemainingQuantity

integer

None.

AllItemsReadyToOrder

YesNo

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "listItemID": 1,
    "remainingQuantity": 2,
    "allItemsReadyToOrder": "YES"
  },
  {
    "listItemID": 1,
    "remainingQuantity": 2,
    "allItemsReadyToOrder": "YES"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_OrderItemStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_OrderItemStatus>
    <AllItemsReadyToOrder>YES</AllItemsReadyToOrder>
    <ListItemID>1</ListItemID>
    <RemainingQuantity>2</RemainingQuantity>
  </R_OrderItemStatus>
  <R_OrderItemStatus>
    <AllItemsReadyToOrder>YES</AllItemsReadyToOrder>
    <ListItemID>1</ListItemID>
    <RemainingQuantity>2</RemainingQuantity>
  </R_OrderItemStatus>
</ArrayOfR_OrderItemStatus>

multipart/form-data

Sample:
<ArrayOfR_OrderItemStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_OrderItemStatus><AllItemsReadyToOrder>YES</AllItemsReadyToOrder><ListItemID>1</ListItemID><RemainingQuantity>2</RemainingQuantity></R_OrderItemStatus><R_OrderItemStatus><AllItemsReadyToOrder>YES</AllItemsReadyToOrder><ListItemID>1</ListItemID><RemainingQuantity>2</RemainingQuantity></R_OrderItemStatus></ArrayOfR_OrderItemStatus>