GET api/MyCart/GetMyCartItems

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of R_MyCartItem
NameDescriptionTypeAdditional information
FoodID

integer

None.

MyCartID

integer

None.

ListingName

string

None.

FoodName

string

None.

ImageURL

string

None.

Available

YesNo

None.

ItemPrice

decimal number

None.

MyCartItemID

integer

Required

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

ListingID

integer

Required

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

Quantity

integer

Required

Range: inclusive between 1 and 1000

Notes

string

None.

DeliveryPickupMethod

DeliverMethod

Required

ItemRequiredDateTime

date

Required

AddressID

integer

Required

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

DateTimeLocation

W_OrderDateTimeLocation

Required

ReferedBy

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "foodID": 1,
    "myCartID": 2,
    "listingName": "sample string 3",
    "foodName": "sample string 4",
    "imageURL": "sample string 5",
    "available": "YES",
    "itemPrice": 6.0,
    "myCartItemID": 7,
    "listingID": 8,
    "quantity": 9,
    "notes": "sample string 10",
    "deliveryPickupMethod": "ALL",
    "itemRequiredDateTime": "2019-05-21T14:32:07.6438395-07:00",
    "addressID": 12,
    "dateTimeLocation": {
      "orderDateTime": "2019-05-21T14:32:07.6438395-07:00",
      "location": {
        "latitude": 1.1,
        "longitude": 2.1
      }
    },
    "referedBy": "sample string 13"
  },
  {
    "foodID": 1,
    "myCartID": 2,
    "listingName": "sample string 3",
    "foodName": "sample string 4",
    "imageURL": "sample string 5",
    "available": "YES",
    "itemPrice": 6.0,
    "myCartItemID": 7,
    "listingID": 8,
    "quantity": 9,
    "notes": "sample string 10",
    "deliveryPickupMethod": "ALL",
    "itemRequiredDateTime": "2019-05-21T14:32:07.6438395-07:00",
    "addressID": 12,
    "dateTimeLocation": {
      "orderDateTime": "2019-05-21T14:32:07.6438395-07:00",
      "location": {
        "latitude": 1.1,
        "longitude": 2.1
      }
    },
    "referedBy": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_MyCartItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_MyCartItem>
    <AddressID>12</AddressID>
    <DateTimeLocation>
      <Location>
        <latitude>1.1</latitude>
        <longitude>2.1</longitude>
      </Location>
      <OrderDateTime>2019-05-21T14:32:07.6438395-07:00</OrderDateTime>
    </DateTimeLocation>
    <DeliveryPickupMethod>ALL</DeliveryPickupMethod>
    <ItemRequiredDateTime>2019-05-21T14:32:07.6438395-07:00</ItemRequiredDateTime>
    <ListingID>8</ListingID>
    <Notes>sample string 10</Notes>
    <Quantity>9</Quantity>
    <ReferedBy>sample string 13</ReferedBy>
    <MyCartItemID>7</MyCartItemID>
    <Available>YES</Available>
    <FoodID>1</FoodID>
    <FoodName>sample string 4</FoodName>
    <ImageURL>sample string 5</ImageURL>
    <ItemPrice>6</ItemPrice>
    <ListingName>sample string 3</ListingName>
    <MyCartID>2</MyCartID>
  </R_MyCartItem>
  <R_MyCartItem>
    <AddressID>12</AddressID>
    <DateTimeLocation>
      <Location>
        <latitude>1.1</latitude>
        <longitude>2.1</longitude>
      </Location>
      <OrderDateTime>2019-05-21T14:32:07.6438395-07:00</OrderDateTime>
    </DateTimeLocation>
    <DeliveryPickupMethod>ALL</DeliveryPickupMethod>
    <ItemRequiredDateTime>2019-05-21T14:32:07.6438395-07:00</ItemRequiredDateTime>
    <ListingID>8</ListingID>
    <Notes>sample string 10</Notes>
    <Quantity>9</Quantity>
    <ReferedBy>sample string 13</ReferedBy>
    <MyCartItemID>7</MyCartItemID>
    <Available>YES</Available>
    <FoodID>1</FoodID>
    <FoodName>sample string 4</FoodName>
    <ImageURL>sample string 5</ImageURL>
    <ItemPrice>6</ItemPrice>
    <ListingName>sample string 3</ListingName>
    <MyCartID>2</MyCartID>
  </R_MyCartItem>
</ArrayOfR_MyCartItem>

multipart/form-data

Sample:
<ArrayOfR_MyCartItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_MyCartItem><AddressID>12</AddressID><DateTimeLocation><Location><latitude>1.1</latitude><longitude>2.1</longitude></Location><OrderDateTime>2019-05-21T14:32:07.6438395-07:00</OrderDateTime></DateTimeLocation><DeliveryPickupMethod>ALL</DeliveryPickupMethod><ItemRequiredDateTime>2019-05-21T14:32:07.6438395-07:00</ItemRequiredDateTime><ListingID>8</ListingID><Notes>sample string 10</Notes><Quantity>9</Quantity><ReferedBy>sample string 13</ReferedBy><MyCartItemID>7</MyCartItemID><Available>YES</Available><FoodID>1</FoodID><FoodName>sample string 4</FoodName><ImageURL>sample string 5</ImageURL><ItemPrice>6</ItemPrice><ListingName>sample string 3</ListingName><MyCartID>2</MyCartID></R_MyCartItem><R_MyCartItem><AddressID>12</AddressID><DateTimeLocation><Location><latitude>1.1</latitude><longitude>2.1</longitude></Location><OrderDateTime>2019-05-21T14:32:07.6438395-07:00</OrderDateTime></DateTimeLocation><DeliveryPickupMethod>ALL</DeliveryPickupMethod><ItemRequiredDateTime>2019-05-21T14:32:07.6438395-07:00</ItemRequiredDateTime><ListingID>8</ListingID><Notes>sample string 10</Notes><Quantity>9</Quantity><ReferedBy>sample string 13</ReferedBy><MyCartItemID>7</MyCartItemID><Available>YES</Available><FoodID>1</FoodID><FoodName>sample string 4</FoodName><ImageURL>sample string 5</ImageURL><ItemPrice>6</ItemPrice><ListingName>sample string 3</ListingName><MyCartID>2</MyCartID></R_MyCartItem></ArrayOfR_MyCartItem>