GET api/cities/list?provinceID={provinceID}&departmentID={departmentID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
provinceID

integer

None.

departmentID

integer

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CityData
NameDescriptionTypeAdditional information
ProvinceID

integer

None.

DepartmentID

integer

None.

Name

string

None.

ModifiedOn

date

None.

Deleted

boolean

None.

ID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProvinceID": 1,
    "DepartmentID": 1,
    "Name": "sample string 1",
    "ModifiedOn": "2025-08-02T19:24:06.9065015+00:00",
    "Deleted": true,
    "ID": 1
  },
  {
    "ProvinceID": 1,
    "DepartmentID": 1,
    "Name": "sample string 1",
    "ModifiedOn": "2025-08-02T19:24:06.9065015+00:00",
    "Deleted": true,
    "ID": 1
  }
]

text/xml

Sample:
<ArrayOfCityData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data">
  <CityData>
    <ID>1</ID>
    <Deleted xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data.Storage">true</Deleted>
    <ModifiedOn xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data.Storage">2025-08-02T19:24:06.9065015+00:00</ModifiedOn>
    <DepartmentID>1</DepartmentID>
    <Name>sample string 1</Name>
    <ProvinceID>1</ProvinceID>
  </CityData>
  <CityData>
    <ID>1</ID>
    <Deleted xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data.Storage">true</Deleted>
    <ModifiedOn xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data.Storage">2025-08-02T19:24:06.9065015+00:00</ModifiedOn>
    <DepartmentID>1</DepartmentID>
    <Name>sample string 1</Name>
    <ProvinceID>1</ProvinceID>
  </CityData>
</ArrayOfCityData>