POST api/Products/View

Request Information

URI Parameters

None.

Body Parameters

ProductByIdParam
NameDescriptionTypeAdditional information
ProductId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductId": 1
}

application/xml, text/xml

Sample:
<ProductByIdParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mastersoft.BigDipper.Entities">
  <ProductId>1</ProductId>
</ProductByIdParam>

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 'ProductByIdParam'.

Response Information

Resource Description

Product
NameDescriptionTypeAdditional information
ProductId

integer

None.

Code

string

None.

Codart

string

None.

DescriptionLong

string

None.

DescriptionShort

string

None.

ListId

integer

None.

Price

decimal number

None.

StockMin

decimal number

None.

StockMax

decimal number

None.

Stock

decimal number

None.

IVAIncluded

string

None.

IVAPercent

decimal number

None.

DiscountPercent

decimal number

None.

Image

string

None.

Pages

integer

None.

InHabilitado

integer

None.

Favoritos

integer

None.

DataSheet

string

None.

Carrousel

Collection of string

None.

Links

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "Code": "sample string 2",
  "Codart": "sample string 3",
  "DescriptionLong": "sample string 4",
  "DescriptionShort": "sample string 5",
  "ListId": 1,
  "Price": 1.0,
  "StockMin": 1.0,
  "StockMax": 1.0,
  "Stock": 1.0,
  "IVAIncluded": "sample string 6",
  "IVAPercent": 1.0,
  "DiscountPercent": 1.0,
  "Image": "sample string 7",
  "Pages": 8,
  "InHabilitado": 9,
  "Favoritos": 10,
  "DataSheet": "sample string 11",
  "Carrousel": [
    "sample string 1",
    "sample string 2"
  ],
  "Links": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mastersoft.BigDipper.Entities">
  <Carrousel xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Carrousel>
  <Codart>sample string 3</Codart>
  <Code>sample string 2</Code>
  <DataSheet>sample string 11</DataSheet>
  <DescriptionLong>sample string 4</DescriptionLong>
  <DescriptionShort>sample string 5</DescriptionShort>
  <DiscountPercent>1</DiscountPercent>
  <Favoritos>10</Favoritos>
  <IVAIncluded>sample string 6</IVAIncluded>
  <IVAPercent>1</IVAPercent>
  <Image>sample string 7</Image>
  <InHabilitado>9</InHabilitado>
  <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Links>
  <ListId>1</ListId>
  <Pages>8</Pages>
  <Price>1</Price>
  <ProductId>1</ProductId>
  <Stock>1</Stock>
  <StockMax>1</StockMax>
  <StockMin>1</StockMin>
</Product>