POST api/State/GetStateById/{StateId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| StateId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
StateVM| Name | Description | Type | Additional information |
|---|---|---|---|
| StateId | integer |
None. |
|
| StateName | string |
None. |
|
| IsActive | boolean |
None. |
|
| CountryId | integer |
None. |
|
| CountryName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"stateId": 1,
"stateName": "sample string 2",
"isActive": true,
"countryId": 1,
"countryName": "sample string 4"
}
application/xml, text/xml
Sample:
<StateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMS.VM"> <CountryId>1</CountryId> <CountryName>sample string 4</CountryName> <IsActive>true</IsActive> <StateId>1</StateId> <StateName>sample string 2</StateName> </StateVM>