The mayor shall appoint a city attorney with the approval of the city council, together with such assistant city attorneys as may be authorized. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a part and shall advise the city council, mayor and other officers and employees of the city concerning legal aspects of the city's affairs.