POST api/Specs/Size/add
Request Information
URI Parameters
None.
Body Parameters
StoneFactoryAPI.Models.SpecsModel+Size| Name | Description | Type | Additional 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:
Response Information
Resource Description
System.Net.Http.HttpResponseMessage| Name | Description | Type | Additional 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. |