City Controller
All about the endpoints
Endpoints
| METHOD | API ENDPOINT | FUNCTION |
|---|---|---|
| GET | /v1/open/cities | getCities |
| GET | /v1/open/attributesbytype | getAllAttributesByType |
getCity()
- When the api is hit, the flow goes to
cityservice.getAllCities()then the flow goes tocitydao.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.