GET api/WeeklyShoppingCarts?curUserName={curUserName}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
curUserName

string

Required

Body Parameters

None.

Response Information

Resource Description

WeeklyShoppingCartModel
NameDescriptionTypeAdditional information
Id

integer

None.

MemberName

string

None.

MemberNote

string

None.

Active

boolean

None.

PickupDay

integer

None.

TotalQty

integer

None.

TotalPrice

decimal number

None.

WeeklyShoppingCartDetails

Collection of ShoppingCartDetailModel

None.

WeeklyShoppingCartAvailPickupDays

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "MemberName": "sample string 2",
  "MemberNote": "sample string 3",
  "Active": true,
  "PickupDay": 5,
  "TotalQty": 6,
  "TotalPrice": 7.0,
  "WeeklyShoppingCartDetails": [
    {
      "Id": 1,
      "ProductId": 2,
      "ProductName": "sample string 3",
      "Price": 4.0,
      "QtyOrdered": 5,
      "QtyPacked": 6,
      "QtyAvailable": 7
    },
    {
      "Id": 1,
      "ProductId": 2,
      "ProductName": "sample string 3",
      "Price": 4.0,
      "QtyOrdered": 5,
      "QtyPacked": 6,
      "QtyAvailable": 7
    }
  ],
  "WeeklyShoppingCartAvailPickupDays": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<WeeklyShoppingCartModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eGOATsWebApi.Models">
  <Active>true</Active>
  <Id>1</Id>
  <MemberName>sample string 2</MemberName>
  <MemberNote>sample string 3</MemberNote>
  <PickupDay>5</PickupDay>
  <TotalPrice>7</TotalPrice>
  <TotalQty>6</TotalQty>
  <WeeklyShoppingCartAvailPickupDays xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </WeeklyShoppingCartAvailPickupDays>
  <WeeklyShoppingCartDetails>
    <ShoppingCartDetailModel>
      <Id>1</Id>
      <Price>4</Price>
      <ProductId>2</ProductId>
      <ProductName>sample string 3</ProductName>
      <QtyAvailable>7</QtyAvailable>
      <QtyOrdered>5</QtyOrdered>
      <QtyPacked>6</QtyPacked>
    </ShoppingCartDetailModel>
    <ShoppingCartDetailModel>
      <Id>1</Id>
      <Price>4</Price>
      <ProductId>2</ProductId>
      <ProductName>sample string 3</ProductName>
      <QtyAvailable>7</QtyAvailable>
      <QtyOrdered>5</QtyOrdered>
      <QtyPacked>6</QtyPacked>
    </ShoppingCartDetailModel>
  </WeeklyShoppingCartDetails>
</WeeklyShoppingCartModel>