GET api/City/GetAllCity

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CityDto
NameDescriptionTypeAdditional information
CityId

integer

None.

Name

string

None.

StateId

integer

None.

RecordStatus

byte

None.

StateDto

StateDto

None.

Response Formats

application/json, text/json

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