POST api/line

Request Information

URI Parameters

None.

Body Parameters

Line
NameDescriptionTypeAdditional information
LineId

integer

None.

Type

string

None.

Name

string

None.

TunelId

integer

None.

Tunel

Tunel

None.

Request Formats

application/json, text/json

Sample:
{
  "LineId": 1,
  "Type": "sample string 2",
  "Name": "sample string 3",
  "TunelId": 4,
  "Tunel": {
    "TunelId": 1,
    "Name": "sample string 2",
    "GreenHouseId": 3,
    "GreenHouse": {
      "GreenHouseId": 1,
      "Name": "sample string 2",
      "ProjectId": 3,
      "Project": {
        "ProjectId": 1,
        "Name": "sample string 2",
        "Location": "sample string 3",
        "Status": "sample string 4",
        "Manager": "sample string 5"
      }
    }
  }
}

application/xml, text/xml

Sample:
<Line xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MesaGrande.Common.Models">
  <LineId>1</LineId>
  <Name>sample string 3</Name>
  <Tunel>
    <GreenHouse>
      <GreenHouseId>1</GreenHouseId>
      <Name>sample string 2</Name>
      <Project>
        <Location>sample string 3</Location>
        <Manager>sample string 5</Manager>
        <Name>sample string 2</Name>
        <ProjectId>1</ProjectId>
        <Status>sample string 4</Status>
      </Project>
      <ProjectId>3</ProjectId>
    </GreenHouse>
    <GreenHouseId>3</GreenHouseId>
    <Name>sample string 2</Name>
    <TunelId>1</TunelId>
  </Tunel>
  <TunelId>4</TunelId>
  <Type>sample string 2</Type>
</Line>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.