GET api/private/SharedServices/GetTownsByState/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Domain.Postal.PostalTownName | Description | Type | Additional information |
---|---|---|---|
TownId | integer |
None. |
|
TownName | string |
None. |
|
IsOfficial | boolean |
None. |
|
CountyId | integer |
None. |
|
CountyName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "TownId": 1, "TownName": "sample string 2", "IsOfficial": true, "CountyId": 1, "CountyName": "sample string 4" }, { "TownId": 1, "TownName": "sample string 2", "IsOfficial": true, "CountyId": 1, "CountyName": "sample string 4" } ]
text/xml
Sample:
<ArrayOfPostalTown xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Postal"> <PostalTown> <CountyId>1</CountyId> <CountyName>sample string 4</CountyName> <IsOfficial>true</IsOfficial> <TownId>1</TownId> <TownName>sample string 2</TownName> </PostalTown> <PostalTown> <CountyId>1</CountyId> <CountyName>sample string 4</CountyName> <IsOfficial>true</IsOfficial> <TownId>1</TownId> <TownName>sample string 2</TownName> </PostalTown> </ArrayOfPostalTown>