GET api/Cart/GetCartBySessionIdAndProductIdAndSizeId?SessionId={SessionId}&ProductId={ProductId}&SizeId={SizeId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SessionId

string

Required

ProductId

integer

Required

SizeId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Cart
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

User

string

None.

ProductId

integer

None.

SessionId

string

None.

Product

string

None.

Quantity

string

None.

SizeId

integer

None.

Size

string

None.

ColorId

integer

None.

Color

string

None.

Status

string

None.

Rate

decimal number

None.

Amount

decimal number

None.

Photo1

string

None.

Photo2

string

None.

Photo3

string

None.

Photos

Collection of ProductPhoto

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "User": "sample string 3",
  "ProductId": 4,
  "SessionId": "sample string 5",
  "Product": "sample string 6",
  "Quantity": "sample string 7",
  "SizeId": 8,
  "Size": "sample string 9",
  "ColorId": 10,
  "Color": "sample string 11",
  "Status": "sample string 12",
  "Rate": 13.0,
  "Amount": 14.0,
  "Photo1": "sample string 15",
  "Photo2": "sample string 16",
  "Photo3": "sample string 17",
  "Photos": [
    {
      "Id": 1,
      "ProductId": 2,
      "ColorId": 3,
      "Color": "sample string 4",
      "Photo": "sample string 5"
    },
    {
      "Id": 1,
      "ProductId": 2,
      "ColorId": 3,
      "Color": "sample string 4",
      "Photo": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<Cart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models">
  <Amount>14</Amount>
  <Color>sample string 11</Color>
  <ColorId>10</ColorId>
  <Id>1</Id>
  <Photo1>sample string 15</Photo1>
  <Photo2>sample string 16</Photo2>
  <Photo3>sample string 17</Photo3>
  <Photos>
    <ProductPhoto>
      <Color>sample string 4</Color>
      <ColorId>3</ColorId>
      <Id>1</Id>
      <Photo>sample string 5</Photo>
      <ProductId>2</ProductId>
    </ProductPhoto>
    <ProductPhoto>
      <Color>sample string 4</Color>
      <ColorId>3</ColorId>
      <Id>1</Id>
      <Photo>sample string 5</Photo>
      <ProductId>2</ProductId>
    </ProductPhoto>
  </Photos>
  <Product>sample string 6</Product>
  <ProductId>4</ProductId>
  <Quantity>sample string 7</Quantity>
  <Rate>13</Rate>
  <SessionId>sample string 5</SessionId>
  <Size>sample string 9</Size>
  <SizeId>8</SizeId>
  <Status>sample string 12</Status>
  <User>sample string 3</User>
  <UserId>2</UserId>
</Cart>