POST api/Products/AddSize

Request Information

URI Parameters

None.

Body Parameters

StoneFactoryAPI.Models.ProductsModel+AddSize
NameDescriptionTypeAdditional information
width

integer

None.

length

integer

None.

widthPx

integer

None.

lengthPx

integer

None.

unit

string

None.

productId

integer

None.

memberId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "width": 1,
  "length": 1,
  "widthPx": 1,
  "lengthPx": 1,
  "unit": "sample string 1",
  "productId": 1,
  "memberId": 1
}

application/xml, text/xml

Sample:
<ProductsModel.AddSize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models">
  <length>1</length>
  <lengthPx>1</lengthPx>
  <memberId>1</memberId>
  <productId>1</productId>
  <unit>sample string 1</unit>
  <width>1</width>
  <widthPx>1</widthPx>
</ProductsModel.AddSize>

multipart/form-data

Sample:
<ProductsModel.AddSize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models"><length>1</length><lengthPx>1</lengthPx><memberId>1</memberId><productId>1</productId><unit>sample string 1</unit><width>1</width><widthPx>1</widthPx></ProductsModel.AddSize>

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

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.