POST api/Product/GetProducts

Request Information

URI Parameters

None.

Body Parameters

GetProductsRequest
NameDescriptionTypeAdditional information
CategoryId

integer

None.

CategoryIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "CategoryIds": [
    1,
    1
  ]
}

application/xml, text/xml

Sample:
<GetProductsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
  <CategoryId>1</CategoryId>
  <CategoryIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1:long>
  </CategoryIds>
</GetProductsRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetProductsRequest'.

Response Information

Resource Description

GetProductDataResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Token

globally unique identifier

None.

BaseObjects

Collection of BaseProductModel

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'TAG.DataModels.ProductOptionsModel'. Path 'BaseObjects[0].Options[0].SubProductOptions'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'TAG.DataModels.ProductOptionsModel'. Path 'BaseObjects[0].Options[0].SubProductOptions'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[TAG.DataModels.ProductOptionsModel, TAG.DataModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[TAG.DataModels.ProductOptionsModel, TAG.DataModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.