GET api/State/GetStates
Returns a list of states for Australia and New Zealand including country object
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
List of all states
Collection of BO.Models.State| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| StateId | integer |
None. |
|
| Country | BO.Models.Country |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"$id": "2",
"Name": "sample string 1",
"StateId": 2,
"Country": {
"$id": "3",
"CountryId": 1,
"Name": "sample string 2",
"States": {
"$id": "4",
"$values": [
{
"$ref": "2"
},
{
"$ref": "2"
}
]
}
}
},
{
"$ref": "2"
}
]
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.