GET api/private/SharedServices/GetTownById/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
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" }
text/xml
Sample:
<PostalTown xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Postal"> <CountyId>1</CountyId> <CountyName>sample string 4</CountyName> <IsOfficial>true</IsOfficial> <TownId>1</TownId> <TownName>sample string 2</TownName> </PostalTown>