POST api/GetCityByStateId

Request Information

URI Parameters

None.

Body Parameters

CityModel
NameDescriptionTypeAdditional information
CountryId

integer

None.

StateId

integer

None.

CityId

integer

None.

CityName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CountryId": 1,
  "StateId": 2,
  "CityId": 3,
  "CityName": "sample string 4"
}

application/xml, text/xml

Sample:
<CityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models">
  <CityId>3</CityId>
  <CityName>sample string 4</CityName>
  <CountryId>1</CountryId>
  <StateId>2</StateId>
</CityModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of CityModel
NameDescriptionTypeAdditional information
CountryId

integer

None.

StateId

integer

None.

CityId

integer

None.

CityName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CountryId": 1,
    "StateId": 2,
    "CityId": 3,
    "CityName": "sample string 4"
  },
  {
    "CountryId": 1,
    "StateId": 2,
    "CityId": 3,
    "CityName": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DecstopAPI.Models">
  <CityModel>
    <CityId>3</CityId>
    <CityName>sample string 4</CityName>
    <CountryId>1</CountryId>
    <StateId>2</StateId>
  </CityModel>
  <CityModel>
    <CityId>3</CityId>
    <CityName>sample string 4</CityName>
    <CountryId>1</CountryId>
    <StateId>2</StateId>
  </CityModel>
</ArrayOfCityModel>