POST api/JDData/VillageData

Request Information

URI Parameters

None.

Body Parameters

locations
NameDescriptionTypeAdditional information
Mode

integer

None.

fromDate

string

None.

toDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "mode": 1,
  "fromDate": "sample string 2",
  "toDate": "sample string 3"
}

application/xml, text/xml

Sample:
<locations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <Mode>1</Mode>
  <fromDate>sample string 2</fromDate>
  <toDate>sample string 3</toDate>
</locations>

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

Response Information

Resource Description

Collection of VillageModel
NameDescriptionTypeAdditional information
VillageCode

integer

None.

VillageName

string

None.

DistrictCode

integer

None.

DistrictName

string

None.

TehsilCode

integer

None.

TehsilName

string

None.

AOCode

integer

None.

AOName

string

None.

StateCode

integer

None.

StateName

string

None.

Status

string

None.

Remark

string

None.

LastUpdationDate

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "villageCode": 1,
    "villageName": "sample string 2",
    "districtCode": 3,
    "districtName": "sample string 4",
    "tehsilCode": 5,
    "tehsilName": "sample string 6",
    "aoCode": 7,
    "aoName": "sample string 8",
    "stateCode": 9,
    "stateName": "sample string 10",
    "status": "sample string 11",
    "remark": "sample string 12",
    "lastUpdationDate": "sample string 13"
  },
  {
    "villageCode": 1,
    "villageName": "sample string 2",
    "districtCode": 3,
    "districtName": "sample string 4",
    "tehsilCode": 5,
    "tehsilName": "sample string 6",
    "aoCode": 7,
    "aoName": "sample string 8",
    "stateCode": 9,
    "stateName": "sample string 10",
    "status": "sample string 11",
    "remark": "sample string 12",
    "lastUpdationDate": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfVillageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <VillageModel>
    <AOCode>7</AOCode>
    <AOName>sample string 8</AOName>
    <DistrictCode>3</DistrictCode>
    <DistrictName>sample string 4</DistrictName>
    <LastUpdationDate>sample string 13</LastUpdationDate>
    <Remark>sample string 12</Remark>
    <StateCode>9</StateCode>
    <StateName>sample string 10</StateName>
    <Status>sample string 11</Status>
    <TehsilCode>5</TehsilCode>
    <TehsilName>sample string 6</TehsilName>
    <VillageCode>1</VillageCode>
    <VillageName>sample string 2</VillageName>
  </VillageModel>
  <VillageModel>
    <AOCode>7</AOCode>
    <AOName>sample string 8</AOName>
    <DistrictCode>3</DistrictCode>
    <DistrictName>sample string 4</DistrictName>
    <LastUpdationDate>sample string 13</LastUpdationDate>
    <Remark>sample string 12</Remark>
    <StateCode>9</StateCode>
    <StateName>sample string 10</StateName>
    <Status>sample string 11</Status>
    <TehsilCode>5</TehsilCode>
    <TehsilName>sample string 6</TehsilName>
    <VillageCode>1</VillageCode>
    <VillageName>sample string 2</VillageName>
  </VillageModel>
</ArrayOfVillageModel>