Data Object: Cities

Get City


{{ data.city.get(:id) }}

Parameter Type Description
id required int City Identifier

HHTP/1.1 200 OK
{
     id: 5,
     name: "Abovyan",
     countryId: 1,
     stateId: 1,
     languageId: 1,
     languagePrefix: "en"
}

or

false

Parameter Type Description
id int City identifier
name string City name
countryId int Country identifier
stateId int State identifier
languageId int Request language identifier
languagePrefix string Request language prefix


Get Cities List by State


{{ data.city.list({stateId: 1}) }}

Parameter Type Description
stateId required int State Identifier

HTTP/1.1 200 OK
{
    {
          id: 5,
          name: "Abovyan",
          countryId: 1,
          stateId: 1,
          languageId: 1,
          languagePrefix: "en"
     }
     ...
}

or

[]

Parameter Type Description
id int City identifier
name string City name
countryId int Country identifier
stateId int State identifier
languageId int Request language identifier
languagePrefix string Request language prefix