POST api/PostFarmDetails

Request Information

URI Parameters

None.

Body Parameters

FarmDetails_Input
NameDescriptionTypeAdditional information
FarmID

integer

Matching regular expression pattern: ([0-9]+)

UserID

integer

Matching regular expression pattern: ([0-9]+)

SurveyNumber

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]{1,}$

District

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$

Hubli

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$

Village

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$

Taluk

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$

SubdivisionNumber

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]{1,}$

SubSurveyNumber

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]{1,}$

FarmSize

integer

Matching regular expression pattern: ([0-9]+)

SoilType

integer

Matching regular expression pattern: ([0-9]+)

LandType

integer

Matching regular expression pattern: ([0-9]+)

TypeOfCultivation

integer

Matching regular expression pattern: ([0-9]+)

ManPower

integer

Matching regular expression pattern: ([0-9]+)

TypeOfArea

integer

Matching regular expression pattern: ([0-9]+)

TuberCrops

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]{2,}$

CropDetails

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]{2,}$

CropCycles

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]{2,}$

CropGrown

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]{2,}$

TypeOfIrrigation

integer

Matching regular expression pattern: ([0-9]+)

TypeOfPlanting

integer

Matching regular expression pattern: ([0-9]+)

RecordExists

boolean

None.

NextFarmId

integer

Matching regular expression pattern: ([0-9]+)

Request Formats

application/json, text/json

Sample:
{
  "FarmID": 1,
  "UserID": 2,
  "SurveyNumber": "sample string 3",
  "District": "sample string 4",
  "Hubli": "sample string 5",
  "Village": "sample string 6",
  "Taluk": "sample string 7",
  "SubdivisionNumber": "sample string 8",
  "SubSurveyNumber": "sample string 9",
  "FarmSize": 10,
  "SoilType": 11,
  "LandType": 12,
  "TypeOfCultivation": 13,
  "ManPower": 14,
  "TypeOfArea": 15,
  "TuberCrops": "sample string 16",
  "CropDetails": "sample string 17",
  "CropCycles": "sample string 18",
  "CropGrown": "sample string 19",
  "TypeOfIrrigation": 20,
  "TypeOfPlanting": 21,
  "RecordExists": true,
  "NextFarmId": 23
}

application/xml, text/xml

Sample:
<FarmDetails_Input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <CropCycles>sample string 18</CropCycles>
  <CropDetails>sample string 17</CropDetails>
  <CropGrown>sample string 19</CropGrown>
  <District>sample string 4</District>
  <FarmID>1</FarmID>
  <FarmSize>10</FarmSize>
  <Hubli>sample string 5</Hubli>
  <LandType>12</LandType>
  <ManPower>14</ManPower>
  <NextFarmId>23</NextFarmId>
  <RecordExists>true</RecordExists>
  <SoilType>11</SoilType>
  <SubSurveyNumber>sample string 9</SubSurveyNumber>
  <SubdivisionNumber>sample string 8</SubdivisionNumber>
  <SurveyNumber>sample string 3</SurveyNumber>
  <Taluk>sample string 7</Taluk>
  <TuberCrops>sample string 16</TuberCrops>
  <TypeOfArea>15</TypeOfArea>
  <TypeOfCultivation>13</TypeOfCultivation>
  <TypeOfIrrigation>20</TypeOfIrrigation>
  <TypeOfPlanting>21</TypeOfPlanting>
  <UserID>2</UserID>
  <Village>sample string 6</Village>
</FarmDetails_Input>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.