GET API/ChildHotel/StateNames/{CountryId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of States| Name | Description | Type | Additional information |
|---|---|---|---|
| label | string |
None. |
|
| StateName | string |
None. |
|
| Id | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"label": "sample string 1",
"StateName": "sample string 2",
"Id": 3
},
{
"label": "sample string 1",
"StateName": "sample string 2",
"Id": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfStates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMSApi.Models">
<States>
<Id>3</Id>
<StateName>sample string 2</StateName>
<label>sample string 1</label>
</States>
<States>
<Id>3</Id>
<StateName>sample string 2</StateName>
<label>sample string 1</label>
</States>
</ArrayOfStates>