GET api/State/GetAllStateByCountry/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of StateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| abbreviation | string |
None. |
|
| countryId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"name": "sample string 2",
"abbreviation": "sample string 3",
"countryId": 4
},
{
"id": 1,
"name": "sample string 2",
"abbreviation": "sample string 3",
"countryId": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfStateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
<StateDTO>
<abbreviation>sample string 3</abbreviation>
<countryId>4</countryId>
<id>1</id>
<name>sample string 2</name>
</StateDTO>
<StateDTO>
<abbreviation>sample string 3</abbreviation>
<countryId>4</countryId>
<id>1</id>
<name>sample string 2</name>
</StateDTO>
</ArrayOfStateDTO>