GET api/MyCart/GetFavouriteItems

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of R_FavouriteItem
NameDescriptionTypeAdditional information
FoodID

integer

None.

ListingName

string

None.

FoodName

string

None.

FoodImageURL

string

None.

Available

YesNo

None.

LastOrderNumber

integer

None.

LastOrderDate

date

None.

FavouriteID

integer

Required

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

FavouriteItemID

integer

Required

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

ListingID

integer

Required

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

Notes

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "foodID": 1,
    "listingName": "sample string 2",
    "foodName": "sample string 3",
    "foodImageURL": "sample string 4",
    "available": "YES",
    "lastOrderNumber": 5,
    "lastOrderDate": "2019-12-10T08:40:05.8474819-07:00",
    "favouriteID": 7,
    "favouriteItemID": 8,
    "listingID": 9,
    "notes": "sample string 10"
  },
  {
    "foodID": 1,
    "listingName": "sample string 2",
    "foodName": "sample string 3",
    "foodImageURL": "sample string 4",
    "available": "YES",
    "lastOrderNumber": 5,
    "lastOrderDate": "2019-12-10T08:40:05.8474819-07:00",
    "favouriteID": 7,
    "favouriteItemID": 8,
    "listingID": 9,
    "notes": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_FavouriteItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_FavouriteItem>
    <ListingID>9</ListingID>
    <Notes>sample string 10</Notes>
    <FavouriteID>7</FavouriteID>
    <FavouriteItemID>8</FavouriteItemID>
    <Available>YES</Available>
    <FoodID>1</FoodID>
    <FoodImageURL>sample string 4</FoodImageURL>
    <FoodName>sample string 3</FoodName>
    <LastOrderDate>2019-12-10T08:40:05.8474819-07:00</LastOrderDate>
    <LastOrderNumber>5</LastOrderNumber>
    <ListingName>sample string 2</ListingName>
  </R_FavouriteItem>
  <R_FavouriteItem>
    <ListingID>9</ListingID>
    <Notes>sample string 10</Notes>
    <FavouriteID>7</FavouriteID>
    <FavouriteItemID>8</FavouriteItemID>
    <Available>YES</Available>
    <FoodID>1</FoodID>
    <FoodImageURL>sample string 4</FoodImageURL>
    <FoodName>sample string 3</FoodName>
    <LastOrderDate>2019-12-10T08:40:05.8474819-07:00</LastOrderDate>
    <LastOrderNumber>5</LastOrderNumber>
    <ListingName>sample string 2</ListingName>
  </R_FavouriteItem>
</ArrayOfR_FavouriteItem>

multipart/form-data

Sample:
<ArrayOfR_FavouriteItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_FavouriteItem><ListingID>9</ListingID><Notes>sample string 10</Notes><FavouriteID>7</FavouriteID><FavouriteItemID>8</FavouriteItemID><Available>YES</Available><FoodID>1</FoodID><FoodImageURL>sample string 4</FoodImageURL><FoodName>sample string 3</FoodName><LastOrderDate>2019-12-10T08:40:05.8474819-07:00</LastOrderDate><LastOrderNumber>5</LastOrderNumber><ListingName>sample string 2</ListingName></R_FavouriteItem><R_FavouriteItem><ListingID>9</ListingID><Notes>sample string 10</Notes><FavouriteID>7</FavouriteID><FavouriteItemID>8</FavouriteItemID><Available>YES</Available><FoodID>1</FoodID><FoodImageURL>sample string 4</FoodImageURL><FoodName>sample string 3</FoodName><LastOrderDate>2019-12-10T08:40:05.8474819-07:00</LastOrderDate><LastOrderNumber>5</LastOrderNumber><ListingName>sample string 2</ListingName></R_FavouriteItem></ArrayOfR_FavouriteItem>