GET api/State_by_code/{state_code}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| state_code | string |
Required |
Body Parameters
None.
Response Information
Resource Description
states_fetcher_dc| Name | Description | Type | Additional information |
|---|---|---|---|
| StateId | integer |
None. |
|
| StateName | string |
None. |
|
| StateCode | string |
None. |
|
| CountryCode | string |
None. |
|
| CountryName | string |
None. |
|
| Display | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"StateId": 1,
"StateName": "sample string 2",
"StateCode": "sample string 3",
"CountryCode": "sample string 4",
"CountryName": "sample string 5",
"Display": "sample string 6"
}
application/xml, text/xml
Sample:
<states_fetcher_dc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplicationITTF1.Controllers"> <CountryCode>sample string 4</CountryCode> <CountryName>sample string 5</CountryName> <Display>sample string 6</Display> <StateCode>sample string 3</StateCode> <StateId>1</StateId> <StateName>sample string 2</StateName> </states_fetcher_dc>