GET Api/State
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
ResultOfStateData| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| ErrorMessage | Collection of string |
None. |
|
| Value | StateData |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"ErrorMessage": [
"sample string 1",
"sample string 2"
],
"Value": {
"StateList": [
{
"StateID": 1,
"StateCode": "sample string 2",
"StateName": "sample string 3"
},
{
"StateID": 1,
"StateCode": "sample string 2",
"StateName": "sample string 3"
}
],
"Total": 1
}
}
application/xml, text/xml
Sample:
<ResultOfStateDatas4B_SbifD xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.Common.Returns">
<ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorMessage>
<Message>sample string 2</Message>
<Success>true</Success>
<Value xmlns:d2p1="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.NewStates">
<d2p1:StateList>
<d2p1:StateObject>
<d2p1:StateCode>sample string 2</d2p1:StateCode>
<d2p1:StateID>1</d2p1:StateID>
<d2p1:StateName>sample string 3</d2p1:StateName>
</d2p1:StateObject>
<d2p1:StateObject>
<d2p1:StateCode>sample string 2</d2p1:StateCode>
<d2p1:StateID>1</d2p1:StateID>
<d2p1:StateName>sample string 3</d2p1:StateName>
</d2p1:StateObject>
</d2p1:StateList>
<d2p1:Total>1</d2p1:Total>
</Value>
</ResultOfStateDatas4B_SbifD>