GET api/v{version}/Configuration/{stateName}/GetDistricts

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stateName

string

Required

version

string

None.

Body Parameters

None.

Response Information

Resource Description

DistrictsModel
NameDescriptionTypeAdditional information
Districts

Collection of DistrictModel

None.

Error

Error

None.

ValidationErrors

Collection of Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Districts": [
    {
      "Id": 1,
      "Description": "sample string 2"
    },
    {
      "Id": 1,
      "Description": "sample string 2"
    }
  ],
  "Error": {
    "Id": "sample string 1",
    "Message": "sample string 2"
  },
  "ValidationErrors": [
    {
      "Id": "sample string 1",
      "Message": "sample string 2"
    },
    {
      "Id": "sample string 1",
      "Message": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<DistrictsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/K12.Shared.Models">
  <Error>
    <Id>sample string 1</Id>
    <Message>sample string 2</Message>
  </Error>
  <ValidationErrors>
    <Error>
      <Id>sample string 1</Id>
      <Message>sample string 2</Message>
    </Error>
    <Error>
      <Id>sample string 1</Id>
      <Message>sample string 2</Message>
    </Error>
  </ValidationErrors>
  <Districts>
    <DistrictModel>
      <Description>sample string 2</Description>
      <Id>1</Id>
    </DistrictModel>
    <DistrictModel>
      <Description>sample string 2</Description>
      <Id>1</Id>
    </DistrictModel>
  </Districts>
</DistrictsModel>