POST api/Farmer

Request Information

URI Parameters

None.

Body Parameters

FarmerDto
NameDescriptionTypeAdditional information
FarmerId

integer

None.

Name

string

None.

PhoneNumber

string

None.

AdhaarCardNumber

string

None.

Address

string

None.

Tehsil

string

None.

Village

string

None.

District

string

None.

State

string

None.

PinCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FarmerId": 1,
  "Name": "sample string 2",
  "PhoneNumber": "sample string 3",
  "AdhaarCardNumber": "sample string 4",
  "Address": "sample string 5",
  "Tehsil": "sample string 6",
  "Village": "sample string 7",
  "District": "sample string 8",
  "State": "sample string 9",
  "PinCode": "sample string 10"
}

text/xml

Sample:
<FarmerDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoilTesting.Entities">
  <Address>sample string 5</Address>
  <AdhaarCardNumber>sample string 4</AdhaarCardNumber>
  <District>sample string 8</District>
  <FarmerId>1</FarmerId>
  <Name>sample string 2</Name>
  <PhoneNumber>sample string 3</PhoneNumber>
  <PinCode>sample string 10</PinCode>
  <State>sample string 9</State>
  <Tehsil>sample string 6</Tehsil>
  <Village>sample string 7</Village>
</FarmerDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>