POST api/Specs/Size/add

Request Information

URI Parameters

None.

Body Parameters

StoneFactoryAPI.Models.SpecsModel+Size
NameDescriptionTypeAdditional information
id

integer

None.

width

integer

None.

length

integer

None.

unit

string

None.

userId

integer

None.

width_in_px

integer

None.

length_in_px

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "width": 2,
  "length": 3,
  "unit": "sample string 4",
  "userId": 5,
  "width_in_px": 6,
  "length_in_px": 7
}

application/xml, text/xml

Sample:
<SpecsModel.Size xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models">
  <id>1</id>
  <length>3</length>
  <length_in_px>7</length_in_px>
  <unit>sample string 4</unit>
  <userId>5</userId>
  <width>2</width>
  <width_in_px>6</width_in_px>
</SpecsModel.Size>

multipart/form-data

Sample:
<SpecsModel.Size xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models"><id>1</id><length>3</length><length_in_px>7</length_in_px><unit>sample string 4</unit><userId>5</userId><width>2</width><width_in_px>6</width_in_px></SpecsModel.Size>

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

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.