GET api/Sample_farm/GetFarmer?FarmerID={FarmerID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
FarmerID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Farmer
NameDescriptionTypeAdditional information
FarmerID

integer

None.

FirstName

string

Required

Max length: 50

LastName

string

Max length: 200

Email

string

Max length: 200

Password

string

None.

Phone

string

None.

Address

string

None.

Gender

string

None.

State

string

None.

City

string

None.

FCode

string

None.

FatherName

string

None.

Image

Image

None.

Response Formats

application/xml, text/xml

Sample:
<ArrayOfFarmer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebFarmApi.Models">
  <Farmer>
    <Address>sample string 7</Address>
    <City>sample string 10</City>
    <Email>sample string 4</Email>
    <FCode>sample string 11</FCode>
    <FarmerID>1</FarmerID>
    <FatherName>sample string 12</FatherName>
    <FirstName>sample string 2</FirstName>
    <Gender>sample string 8</Gender>
    <Image xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Drawing" i:nil="true" />
    <LastName>sample string 3</LastName>
    <Password>sample string 5</Password>
    <Phone>sample string 6</Phone>
    <State>sample string 9</State>
  </Farmer>
  <Farmer>
    <Address>sample string 7</Address>
    <City>sample string 10</City>
    <Email>sample string 4</Email>
    <FCode>sample string 11</FCode>
    <FarmerID>1</FarmerID>
    <FatherName>sample string 12</FatherName>
    <FirstName>sample string 2</FirstName>
    <Gender>sample string 8</Gender>
    <Image xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Drawing" i:nil="true" />
    <LastName>sample string 3</LastName>
    <Password>sample string 5</Password>
    <Phone>sample string 6</Phone>
    <State>sample string 9</State>
  </Farmer>
</ArrayOfFarmer>