City Controller

All about the endpoints

Endpoints

METHODAPI ENDPOINTFUNCTION
GET/v1/open/citiesgetCities
GET/v1/open/attributesbytypegetAllAttributesByType

getCity()

  • When the api is hit, the flow goes to cityservice.getAllCities() then the flow goes to citydao.getAllCities() and gets a List of city array objects.
  • For every city array object, the id and value are added to the map list of cities and cities are returned after sorting.
Top