POST api/GetStateByCountryId
Request Information
URI Parameters
None.
Body Parameters
StateModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StateId | integer |
None. |
|
| CountryId | integer |
None. |
|
| StateName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"StateId": 1,
"CountryId": 2,
"StateName": "sample string 3"
}
application/xml, text/xml
Sample:
<StateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models"> <CountryId>2</CountryId> <StateId>1</StateId> <StateName>sample string 3</StateName> </StateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of StateModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StateId | integer |
None. |
|
| CountryId | integer |
None. |
|
| StateName | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"StateId": 1,
"CountryId": 2,
"StateName": "sample string 3"
},
{
"StateId": 1,
"CountryId": 2,
"StateName": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfStateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models">
<StateModel>
<CountryId>2</CountryId>
<StateId>1</StateId>
<StateName>sample string 3</StateName>
</StateModel>
<StateModel>
<CountryId>2</CountryId>
<StateId>1</StateId>
<StateName>sample string 3</StateName>
</StateModel>
</ArrayOfStateModel>