POST api/JDData/TehsilData

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 TehsilModel
NameDescriptionTypeAdditional information
TehsilCode

integer

None.

TehsilName

string

None.

DistrictCode

integer

None.

DistrictName

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:
[
  {
    "tehsilCode": 1,
    "tehsilName": "sample string 2",
    "districtCode": 3,
    "districtName": "sample string 4",
    "aoCode": 5,
    "aoName": "sample string 6",
    "stateCode": 7,
    "stateName": "sample string 8",
    "status": "sample string 9",
    "remark": "sample string 10",
    "lastUpdationDate": "sample string 11"
  },
  {
    "tehsilCode": 1,
    "tehsilName": "sample string 2",
    "districtCode": 3,
    "districtName": "sample string 4",
    "aoCode": 5,
    "aoName": "sample string 6",
    "stateCode": 7,
    "stateName": "sample string 8",
    "status": "sample string 9",
    "remark": "sample string 10",
    "lastUpdationDate": "sample string 11"
  }
]

application/xml, text/xml

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