GET api/Product/GetProductPhotoByProductIdAndColorId?productId={productId}&colorId={colorId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
productId

integer

Required

colorId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ProductPhoto
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

ColorId

integer

None.

Color

string

None.

Photo

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "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:
<ArrayOfProductPhoto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models">
  <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>
</ArrayOfProductPhoto>