Previous Next JavaScript must be enabled to correctly display this content

## Get all valid world cities

get

/service/lmm/cities

This endpoint is used to get all valid world cities maintenance records.

### Request

Supported Media Types

- application/json
- application/xml

Query Parameters

- cityName(optional): string
- countryCode(optional): string
- limit(optional): integer
  limit is maximum no of records to be fetched
- offset(optional): integer
  offset is starting no of records to be fetched

Back to Top

### Response

Supported Media Types

- application/json
- application/xml

#### 201 Response

Returns message of success or failure
Headers

- Location: string

Body ()
Root Schema : LmmTmCitiesServiceCollection
Type: `object`
Collection of cities.
Show Source

- data(optional): array data
- paging(optional): object PagingDto

    {
        "description":"Collection of cities.",
        "type":"object",
        "properties":{
            "data":{
                "type":"array",
                "items":{
                    "$ref":"#/definitions/LmmTmCitiesDTO"
                }
            },
            "paging":{
                "$ref":"#/definitions/PagingDto"
            }
        }
    }

Nested Schema : data
Type: `array`
Show Source

- Array of: object LmmTmCitiesDTO

    {
        "type":"array",
        "items":{
            "$ref":"#/definitions/LmmTmCitiesDTO"
        }
    }

Nested Schema : PagingDto
Type: `object`
Show Source

- totalResults(optional): integer

    {
        "type":"object",
        "properties":{
            "totalResults":{
                "type":"integer"
            }
        }
    }

Nested Schema : LmmTmCitiesDTO
Type: `object`
Match All
Show Source

- allOf GenericDto
- object LmmTmCitiesDTO-allOf[1]

    {
        "type":"object",
        "allOf":[
            {
                "$ref":"#/definitions/GenericDto"
            },
            {
                "type":"object",
                "properties":{
                    "cityName":{
                        "type":"string",
                        "description":""
                    },
                    "countryName":{
                        "type":"string",
                        "description":""
                    },
                    "countryIso2":{
                        "type":"string",
                        "description":""
                    },
                    "countryIso3":{
                        "type":"string",
                        "description":""
                    },
                    "latitude":{
                        "type":"string",
                        "description":""
                    },
                    "longitude":{
                        "type":"string",
                        "description":""
                    },
                    "region":{
                        "type":"string",
                        "description":""
                    },
                    "timeZone":{
                        "type":"string",
                        "description":""
                    }
                }
            }
        ]
    }

Nested Schema : GenericDto
Match All
Show Source

- object GenericDto-allOf[0]
  Discriminator: `resource_type`

    {
        "allOf":[
            {
                "type":"object",
                "discriminator":"resource_type"
            }
        ]
    }

Nested Schema : GenericDto-allOf[0]
Type: `object`
Discriminator: `resource_type`
Nested Schema : LmmTmCitiesDTO-allOf[1]
Type: `object`
Show Source

- cityName(optional): string
- countryIso2(optional): string
- countryIso3(optional): string
- countryName(optional): string
- latitude(optional): string
- longitude(optional): string
- region(optional): string
- timeZone(optional): string

    {
        "type":"object",
        "properties":{
            "cityName":{
                "type":"string",
                "description":""
            },
            "countryName":{
                "type":"string",
                "description":""
            },
            "countryIso2":{
                "type":"string",
                "description":""
            },
            "countryIso3":{
                "type":"string",
                "description":""
            },
            "latitude":{
                "type":"string",
                "description":""
            },
            "longitude":{
                "type":"string",
                "description":""
            },
            "region":{
                "type":"string",
                "description":""
            },
            "timeZone":{
                "type":"string",
                "description":""
            }
        }
    }

#### 400 Response

Malformed syntax.

#### 401 Response

Request does not have sufficient credentials.

#### 403 Response

Request is not authorized.

#### 405 Response

Invalid input

#### 500 Response

Internal error
Back to Top