GET api/states/{stateId}/counties?showSupported={showSupported}
This method will retrieve all counties for a specific state
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
stateId | integer |
Required |
|
showSupported | boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of
Collection of CountyResponseModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
DisplayName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "id": 1, "displayName": "sample string 2" }, { "id": 1, "displayName": "sample string 2" } ]
text/html
Sample:
[{"id":1,"displayName":"sample string 2"},{"id":1,"displayName":"sample string 2"}]
application/xml, text/xml
Sample:
<ArrayOfCountyResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.CountyBinding"> <CountyResponseModel> <DisplayName>sample string 2</DisplayName> <Id>1</Id> </CountyResponseModel> <CountyResponseModel> <DisplayName>sample string 2</DisplayName> <Id>1</Id> </CountyResponseModel> </ArrayOfCountyResponseModel>