GET api/StateProvinces?countryId={countryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryId

System.Guid

Required

Body Parameters

None.

Response Information

Resource Description

System.Collections.Generic.IEnumerable`1[Altai.Web.Services.Models.StateProvince]
NameDescriptionTypeAdditional information
Id

System.Guid

None.

Code

System.String

None.

Name

System.String

None.

Country

Altai.Web.Services.Models.Country

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "ecd8473f-0e1c-4a60-b281-34acd17e6591",
    "Code": "sample string 2",
    "Name": "sample string 3",
    "Country": {
      "Id": "sample string 1",
      "Code": "sample string 2",
      "Name": "sample string 3"
    }
  },
  {
    "Id": "ecd8473f-0e1c-4a60-b281-34acd17e6591",
    "Code": "sample string 2",
    "Name": "sample string 3",
    "Country": {
      "Id": "sample string 1",
      "Code": "sample string 2",
      "Name": "sample string 3"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfStateProvince xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Altai.Web.Services.Models">
  <StateProvince>
    <Code>sample string 2</Code>
    <Country>
      <Code>sample string 2</Code>
      <Id>sample string 1</Id>
      <Name>sample string 3</Name>
    </Country>
    <Id>ecd8473f-0e1c-4a60-b281-34acd17e6591</Id>
    <Name>sample string 3</Name>
  </StateProvince>
  <StateProvince>
    <Code>sample string 2</Code>
    <Country>
      <Code>sample string 2</Code>
      <Id>sample string 1</Id>
      <Name>sample string 3</Name>
    </Country>
    <Id>ecd8473f-0e1c-4a60-b281-34acd17e6591</Id>
    <Name>sample string 3</Name>
  </StateProvince>
</ArrayOfStateProvince>