GET api/StateProvinces?countryId={countryId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
countryId | System.Guid |
Required |
Body Parameters
None.
Response Information
Resource Description
System.Collections.Generic.IEnumerable`1[Altai.Web.Services.Models.StateProvince]Name | Description | Type | Additional 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": "7c471403-0b97-4edd-a7b0-1413dee00cfe", "Code": "sample string 2", "Name": "sample string 3", "Country": { "Id": "sample string 1", "Code": "sample string 2", "Name": "sample string 3" } }, { "Id": "7c471403-0b97-4edd-a7b0-1413dee00cfe", "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>7c471403-0b97-4edd-a7b0-1413dee00cfe</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>7c471403-0b97-4edd-a7b0-1413dee00cfe</Id> <Name>sample string 3</Name> </StateProvince> </ArrayOfStateProvince>