POST api/lookup/Cities/All

Request Information

URI Parameters

None.

Body Parameters

SingleValueDtoOfBoolean
NameDescriptionTypeAdditional information
Value

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Value": true
}

application/xml, text/xml

Sample:
<SingleValueDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">
  <Value>true</Value>
</SingleValueDtoOfboolean>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of CityDto
NameDescriptionTypeAdditional information
Name

string

None.

CountryId

integer

None.

Country

CountryDto

None.

IsActive

boolean

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "CountryId": 2,
    "Country": {
      "Name": "sample string 1",
      "Code": "sample string 2",
      "Id": 3
    },
    "IsActive": true,
    "Id": 4
  },
  {
    "Name": "sample string 1",
    "CountryId": 2,
    "Country": {
      "Name": "sample string 1",
      "Code": "sample string 2",
      "Id": 3
    },
    "IsActive": true,
    "Id": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfCityDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">
  <CityDto>
    <Id>4</Id>
    <Country>
      <Id>3</Id>
      <Code>sample string 2</Code>
      <Name>sample string 1</Name>
    </Country>
    <CountryId>2</CountryId>
    <IsActive>true</IsActive>
    <Name>sample string 1</Name>
  </CityDto>
  <CityDto>
    <Id>4</Id>
    <Country>
      <Id>3</Id>
      <Code>sample string 2</Code>
      <Name>sample string 1</Name>
    </Country>
    <CountryId>2</CountryId>
    <IsActive>true</IsActive>
    <Name>sample string 1</Name>
  </CityDto>
</ArrayOfCityDto>