POST Account/CityList

Request Information

URI Parameters

None.

Body Parameters

City
NameDescriptionTypeAdditional information
CityName

string

None.

StateId

integer

None.

CityId

integer

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'City'.

Response Information

Resource Description

Collection of City
NameDescriptionTypeAdditional information
CityName

string

None.

StateId

integer

None.

CityId

integer

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ArrayOfCity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api.Models">
  <City>
    <CityId>3</CityId>
    <CityName>sample string 1</CityName>
    <StateId>2</StateId>
  </City>
  <City>
    <CityId>3</CityId>
    <CityName>sample string 1</CityName>
    <StateId>2</StateId>
  </City>
</ArrayOfCity>