GET api/district/get-list-on-state/{stateId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stateId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of DistrictDTO
NameDescriptionTypeAdditional information
Id

integer

None.

StateId

integer

None.

StateCode

string

None.

StateName

string

None.

CountryId

integer

None.

CountryCode

string

None.

CountryName

string

None.

Code

string

None.

Name

string

None.

Status

boolean

None.

Countries

Collection of CountryDTO

None.

States

Collection of StateDTO

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "StateId": 1,
    "StateCode": "sample string 2",
    "StateName": "sample string 3",
    "CountryId": 1,
    "CountryCode": "sample string 4",
    "CountryName": "sample string 5",
    "Code": "sample string 6",
    "Name": "sample string 7",
    "Status": true,
    "Countries": [
      {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Status": true
      },
      {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Status": true
      }
    ],
    "States": [
      {
        "Id": 1,
        "CountryId": 1,
        "CountryName": "sample string 2",
        "CountryCode": "sample string 3",
        "Code": "sample string 4",
        "Name": "sample string 5",
        "Status": true,
        "Countries": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          }
        ]
      },
      {
        "Id": 1,
        "CountryId": 1,
        "CountryName": "sample string 2",
        "CountryCode": "sample string 3",
        "Code": "sample string 4",
        "Name": "sample string 5",
        "Status": true,
        "Countries": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          }
        ]
      }
    ]
  },
  {
    "Id": 1,
    "StateId": 1,
    "StateCode": "sample string 2",
    "StateName": "sample string 3",
    "CountryId": 1,
    "CountryCode": "sample string 4",
    "CountryName": "sample string 5",
    "Code": "sample string 6",
    "Name": "sample string 7",
    "Status": true,
    "Countries": [
      {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Status": true
      },
      {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Status": true
      }
    ],
    "States": [
      {
        "Id": 1,
        "CountryId": 1,
        "CountryName": "sample string 2",
        "CountryCode": "sample string 3",
        "Code": "sample string 4",
        "Name": "sample string 5",
        "Status": true,
        "Countries": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          }
        ]
      },
      {
        "Id": 1,
        "CountryId": 1,
        "CountryName": "sample string 2",
        "CountryCode": "sample string 3",
        "Code": "sample string 4",
        "Name": "sample string 5",
        "Status": true,
        "Countries": [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "Status": true
          }
        ]
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfDistrictDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.Master">
  <DistrictDTO>
    <Code>sample string 6</Code>
    <Countries>
      <CountryDTO>
        <Code>sample string 2</Code>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <Status>true</Status>
      </CountryDTO>
      <CountryDTO>
        <Code>sample string 2</Code>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <Status>true</Status>
      </CountryDTO>
    </Countries>
    <CountryCode>sample string 4</CountryCode>
    <CountryId>1</CountryId>
    <CountryName>sample string 5</CountryName>
    <Id>1</Id>
    <Name>sample string 7</Name>
    <StateCode>sample string 2</StateCode>
    <StateId>1</StateId>
    <StateName>sample string 3</StateName>
    <States>
      <StateDTO>
        <Code>sample string 4</Code>
        <Countries>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
        </Countries>
        <CountryCode>sample string 3</CountryCode>
        <CountryId>1</CountryId>
        <CountryName>sample string 2</CountryName>
        <Id>1</Id>
        <Name>sample string 5</Name>
        <Status>true</Status>
      </StateDTO>
      <StateDTO>
        <Code>sample string 4</Code>
        <Countries>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
        </Countries>
        <CountryCode>sample string 3</CountryCode>
        <CountryId>1</CountryId>
        <CountryName>sample string 2</CountryName>
        <Id>1</Id>
        <Name>sample string 5</Name>
        <Status>true</Status>
      </StateDTO>
    </States>
    <Status>true</Status>
  </DistrictDTO>
  <DistrictDTO>
    <Code>sample string 6</Code>
    <Countries>
      <CountryDTO>
        <Code>sample string 2</Code>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <Status>true</Status>
      </CountryDTO>
      <CountryDTO>
        <Code>sample string 2</Code>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <Status>true</Status>
      </CountryDTO>
    </Countries>
    <CountryCode>sample string 4</CountryCode>
    <CountryId>1</CountryId>
    <CountryName>sample string 5</CountryName>
    <Id>1</Id>
    <Name>sample string 7</Name>
    <StateCode>sample string 2</StateCode>
    <StateId>1</StateId>
    <StateName>sample string 3</StateName>
    <States>
      <StateDTO>
        <Code>sample string 4</Code>
        <Countries>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
        </Countries>
        <CountryCode>sample string 3</CountryCode>
        <CountryId>1</CountryId>
        <CountryName>sample string 2</CountryName>
        <Id>1</Id>
        <Name>sample string 5</Name>
        <Status>true</Status>
      </StateDTO>
      <StateDTO>
        <Code>sample string 4</Code>
        <Countries>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
          <CountryDTO>
            <Code>sample string 2</Code>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <Status>true</Status>
          </CountryDTO>
        </Countries>
        <CountryCode>sample string 3</CountryCode>
        <CountryId>1</CountryId>
        <CountryName>sample string 2</CountryName>
        <Id>1</Id>
        <Name>sample string 5</Name>
        <Status>true</Status>
      </StateDTO>
    </States>
    <Status>true</Status>
  </DistrictDTO>
</ArrayOfDistrictDTO>