GET api/Masters/GetDistricts?stateCode={stateCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stateCode

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of SpGetDistrict_Result
NameDescriptionTypeAdditional information
DistrictID

integer

None.

DistrictCode

string

None.

DistrictName

string

None.

StateCode

string

None.

PDName

string

None.

PDMobile

string

None.

PDAddress

string

None.

PDEmail

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DistrictID": 1,
    "DistrictCode": "sample string 2",
    "DistrictName": "sample string 3",
    "StateCode": "sample string 4",
    "PDName": "sample string 5",
    "PDMobile": "sample string 6",
    "PDAddress": "sample string 7",
    "PDEmail": "sample string 8"
  },
  {
    "DistrictID": 1,
    "DistrictCode": "sample string 2",
    "DistrictName": "sample string 3",
    "StateCode": "sample string 4",
    "PDName": "sample string 5",
    "PDMobile": "sample string 6",
    "PDAddress": "sample string 7",
    "PDEmail": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSpGetDistrict_Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TSWDCW.Models">
  <SpGetDistrict_Result>
    <DistrictCode>sample string 2</DistrictCode>
    <DistrictID>1</DistrictID>
    <DistrictName>sample string 3</DistrictName>
    <PDAddress>sample string 7</PDAddress>
    <PDEmail>sample string 8</PDEmail>
    <PDMobile>sample string 6</PDMobile>
    <PDName>sample string 5</PDName>
    <StateCode>sample string 4</StateCode>
  </SpGetDistrict_Result>
  <SpGetDistrict_Result>
    <DistrictCode>sample string 2</DistrictCode>
    <DistrictID>1</DistrictID>
    <DistrictName>sample string 3</DistrictName>
    <PDAddress>sample string 7</PDAddress>
    <PDEmail>sample string 8</PDEmail>
    <PDMobile>sample string 6</PDMobile>
    <PDName>sample string 5</PDName>
    <StateCode>sample string 4</StateCode>
  </SpGetDistrict_Result>
</ArrayOfSpGetDistrict_Result>