GET api/Dashboard/GetAllStates

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of StateDto
NameDescriptionTypeAdditional information
StateId

integer

None.

Name

string

None.

CountryId

integer

None.

RecordStatus

byte

None.

CountryDto

CountryDto

None.

CityDto

Collection of CityDto

None.

NearByStatesDto

Collection of NearByStateDto

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "stateId": 1,
    "name": "sample string 2",
    "countryId": 3,
    "recordStatus": 64,
    "countryDto": {
      "$id": "2",
      "countryId": 1,
      "name": "sample string 2",
      "recordStatus": 64,
      "currencyId": 4,
      "currencyDto": {
        "$id": "3",
        "currencyId": 1,
        "code": "sample string 2",
        "name": "sample string 3",
        "recordStatus": 64
      }
    },
    "cityDto": [
      {
        "$id": "4",
        "cityId": 1,
        "name": "sample string 2",
        "stateId": 3,
        "recordStatus": 64,
        "stateDto": {
          "$ref": "1"
        }
      },
      {
        "$ref": "4"
      }
    ],
    "nearByStatesDto": [
      {
        "$id": "5",
        "nearByStatesId": 1,
        "parentStateId": 2,
        "stateId": 3,
        "recordStatus": 64
      },
      {
        "$ref": "5"
      }
    ]
  },
  {
    "$ref": "1"
  }
]