POST api/Model/SavePathDetails/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
Body Parameters
PathResult| Name | Description | Type | Additional information |
|---|---|---|---|
| modelId | string |
None. |
|
| flipped | boolean |
None. |
|
| scaleInches | decimal number |
None. |
|
| paths | Collection of PathResultPath |
None. |
Request Formats
application/json, text/json
Sample:
{
"modelId": "sample string 1",
"flipped": true,
"scaleInches": 3.0,
"paths": [
{
"name": "sample string 1",
"id": "sample string 2",
"size": 3.0,
"path": [
{
"x": 1.1,
"y": 2.1
},
{
"x": 1.1,
"y": 2.1
}
]
},
{
"name": "sample string 1",
"id": "sample string 2",
"size": 3.0,
"path": [
{
"x": 1.1,
"y": 2.1
},
{
"x": 1.1,
"y": 2.1
}
]
}
]
}
text/html
Sample:
{"modelId":"sample string 1","flipped":true,"scaleInches":3.0,"paths":[{"name":"sample string 1","id":"sample string 2","size":3.0,"path":[{"x":1.1,"y":2.1},{"x":1.1,"y":2.1}]},{"name":"sample string 1","id":"sample string 2","size":3.0,"path":[{"x":1.1,"y":2.1},{"x":1.1,"y":2.1}]}]}
application/xml, text/xml
Sample:
<PathResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BRH.ServicesAPI.Controllers">
<flipped>true</flipped>
<modelId>sample string 1</modelId>
<paths>
<PathResultPath>
<id>sample string 2</id>
<name>sample string 1</name>
<path>
<PathNode>
<x>1.1</x>
<y>2.1</y>
</PathNode>
<PathNode>
<x>1.1</x>
<y>2.1</y>
</PathNode>
</path>
<size>3</size>
</PathResultPath>
<PathResultPath>
<id>sample string 2</id>
<name>sample string 1</name>
<path>
<PathNode>
<x>1.1</x>
<y>2.1</y>
</PathNode>
<PathNode>
<x>1.1</x>
<y>2.1</y>
</PathNode>
</path>
<size>3</size>
</PathResultPath>
</paths>
<scaleInches>3</scaleInches>
</PathResult>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JsonResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ContentEncoding | Encoding |
None. |
|
| ContentType | string |
None. |
|
| Data | Object |
None. |
|
| JsonRequestBehavior | JsonRequestBehavior |
None. |
|
| MaxJsonLength | integer |
None. |
|
| RecursionLimit | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ContentEncoding": null,
"ContentType": "sample string 1",
"Data": {},
"JsonRequestBehavior": 0,
"MaxJsonLength": 1,
"RecursionLimit": 1
}
text/html
Sample:
{"ContentEncoding":null,"ContentType":"sample string 1","Data":{},"JsonRequestBehavior":0,"MaxJsonLength":1,"RecursionLimit":1}
application/xml, text/xml
Sample:
<JsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc"> <ContentEncoding xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Text" i:nil="true" /> <ContentType>sample string 1</ContentType> <Data /> <JsonRequestBehavior>AllowGet</JsonRequestBehavior> <MaxJsonLength>1</MaxJsonLength> <RecursionLimit>1</RecursionLimit> </JsonResult>