The city attorney, appointed by the city council, is responsible for representing and defending the city in all litigation in which the city is a party and advises the council, mayor and other officers and employees of the city concerning legal aspects of the city's affairs and performs such other duties as may be requested by the council.