GET api/v1/lookup/states/{countryCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| countryCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of State| Name | Description | Type | Additional information |
|---|---|---|---|
| StateAnsID | integer |
None. |
|
| StateName | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"stateAnsID": 1,
"stateName": "sample string 2"
},
{
"stateAnsID": 1,
"stateName": "sample string 2"
}
]
text/xml
Sample:
<ArrayOfState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PMSBL.Entity">
<State>
<_x003C_StateAnsID_x003E_k__BackingField>1</_x003C_StateAnsID_x003E_k__BackingField>
<_x003C_StateName_x003E_k__BackingField>sample string 2</_x003C_StateName_x003E_k__BackingField>
</State>
<State>
<_x003C_StateAnsID_x003E_k__BackingField>1</_x003C_StateAnsID_x003E_k__BackingField>
<_x003C_StateName_x003E_k__BackingField>sample string 2</_x003C_StateName_x003E_k__BackingField>
</State>
</ArrayOfState>